Use full type as log category
This commit is contained in:
@@ -36,7 +36,7 @@ public static class DeleteCar
|
||||
|
||||
if (rows > 1)
|
||||
{
|
||||
ILogger logger = loggerFactory.CreateLogger(nameof(DeleteCar));
|
||||
ILogger logger = loggerFactory.CreateLogger(typeof(DeleteCar));
|
||||
logger.LogWarning("Deleted '{DeletedRowCount}' rows for id '{CarId}'", rows, id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user