Added the debug logs in log controller
This commit is contained in:
parent
4f77431541
commit
06db1adc52
@ -101,6 +101,9 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
// Use a switch expression or simple if/else for clarity based on log level
|
// Use a switch expression or simple if/else for clarity based on log level
|
||||||
switch (logLevel?.ToLowerInvariant()) // Use ToLowerInvariant for case-insensitive comparison
|
switch (logLevel?.ToLowerInvariant()) // Use ToLowerInvariant for case-insensitive comparison
|
||||||
{
|
{
|
||||||
|
case "debug":
|
||||||
|
_logger.LogDebug(message);
|
||||||
|
break;
|
||||||
case "info":
|
case "info":
|
||||||
case "information": // Common alias for info
|
case "information": // Common alias for info
|
||||||
_logger.LogInformation(message);
|
_logger.LogInformation(message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user