diff --git a/Marco.Pms.Services/Controllers/LogController.cs b/Marco.Pms.Services/Controllers/LogController.cs index 4efaf85..c206d0b 100644 --- a/Marco.Pms.Services/Controllers/LogController.cs +++ b/Marco.Pms.Services/Controllers/LogController.cs @@ -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);