Documentation ¶ Index ¶ type ILogger type Level type Logger func New(w io.Writer, opts ...Opts) *Logger func (l *Logger) Debug(msg string, args ...any) func (l *Logger) Error(msg string, args ...any) func (l *Logger) Info(msg string, args ...any) func (l *Logger) SetLevel(level Level) type Opts Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ILogger ¶ type ILogger interface { SetLevel(level Level) Debug(msg string, args ...any) Info(msg string, args ...any) Error(msg string, args ...any) } type Level ¶ type Level string const ( DebugLvl Level = "debug" InfoLvl Level = "info" ErrorLvl Level = "error" ) type Logger ¶ type Logger struct { // contains filtered or unexported fields } func New ¶ func New(w io.Writer, opts ...Opts) *Logger func (*Logger) Debug ¶ func (l *Logger) Debug(msg string, args ...any) func (*Logger) Error ¶ func (l *Logger) Error(msg string, args ...any) func (*Logger) Info ¶ func (l *Logger) Info(msg string, args ...any) func (*Logger) SetLevel ¶ func (l *Logger) SetLevel(level Level) type Opts ¶ type Opts func(*Logger) Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.