Documentation ¶ Index ¶ func Close() func Setup() *slog.Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Close ¶ func Close() Close closes the log file if one was opened. Should be called on application shutdown. func Setup ¶ func Setup() *slog.Logger Setup initializes the global slog logger based on config values. Reads LOG_LEVEL, LOG_FORMAT, LOG_OUTPUT from environment. Sets slog.SetDefault() so that slog.Info(), slog.Error() etc. work globally. Returns the configured logger instance. Types ¶ This section is empty. Source Files ¶ View all Source files level.gologger.go Click to show internal directories. Click to hide internal directories.