Added the debug logs in log controller

This commit is contained in:
ashutosh.nehete 2025-09-08 11:47:53 +05:30
parent 4f77431541
commit 06db1adc52

View File

@ -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);