MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetGlobalLogger

Function GetGlobalLogger

internal/logger/logger.go:285–292  ·  view source on GitHub ↗

GetGlobalLogger returns the global logger instance If not initialized, it creates a simple logger with Info level.

()

Source from the content-addressed store, hash-verified

283// GetGlobalLogger returns the global logger instance
284// If not initialized, it creates a simple logger with Info level.
285func 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.

Callers 8

NewLoggerAdapterFunction · 0.92
sshLoggerFunction · 0.92
ansibleLoggerFunction · 0.92
GetUILoggerFunction · 0.92
crSSHLoggerFunction · 0.92
IsSOPSEncryptedFunction · 0.92
GetPackageLoggerFunction · 0.85
GetPackageLoggerConcreteFunction · 0.85

Calls 1

NewSimpleLoggerFunction · 0.85

Tested by

no test coverage detected