Document_Manager #129
@ -101,6 +101,9 @@ namespace Marco.Pms.Services.Controllers
|
||||
// Use a switch expression or simple if/else for clarity based on log level
|
||||
switch (logLevel?.ToLowerInvariant()) // Use ToLowerInvariant for case-insensitive comparison
|
||||
{
|
||||
case "debug":
|
||||
_logger.LogDebug(message);
|
||||
break;
|
||||
case "info":
|
||||
case "information": // Common alias for info
|
||||
_logger.LogInformation(message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user