Documentation ¶ Index ¶ type LogLevel type Logger func New() Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type LogLevel ¶ type LogLevel int LogLevel represents the severity of a log message. const ( LogLevelInfo LogLevel = iota LogLevelSuccess LogLevelWarning LogLevelError ) type Logger ¶ type Logger interface { Info(format string, a ...any) Success(format string, a ...any) Warning(format string, a ...any) Error(format string, a ...any) } Logger defines the interface for logging messages with different severity levels. func New ¶ func New() Logger New creates a new instance of the default Logger. Example: logger := log.New() logger.Info("Starting application...") Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.