Documentation
¶
Overview ¶
File: internal/observability/logger.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(cfg config.LoggerConfig, consoleWriter zapcore.WriteSyncer)
Initialize sets up the global Zap logger based on configuration and a specified output writer. This is the core, flexible initializer.
func InitializeLogger ¶
func InitializeLogger(cfg config.LoggerConfig)
InitializeLogger is a convenience wrapper around Initialize for production use. It defaults console output to a locked Stdout.
func ResetForTest ¶
func ResetForTest()
ResetForTest resets the sync.Once and clears the global logger. This function should ONLY be used in tests to ensure isolation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.