GetGlobalLogger returns the global logger instance If not initialized, it creates a simple logger with Info level.
()
| 283 | // GetGlobalLogger returns the global logger instance |
| 284 | // If not initialized, it creates a simple logger with Info level. |
| 285 | func GetGlobalLogger() interfaces.Logger { |
| 286 | if globalLogger == nil { |
| 287 | // Create a fallback logger if global logger wasn't initialized |
| 288 | globalLogger = NewSimpleLogger(LevelInfo) |
| 289 | } |
| 290 | |
| 291 | return globalLogger |
| 292 | } |
| 293 | |
| 294 | // SetDebugEnabled sets the global debug flag for the logger package. |
| 295 | // This should be called during application initialization to enable debug logging. |
no test coverage detected