Versions in this module Expand all Collapse all v1 v1.0.0 May 27, 2024 Changes in this version + func Debug(i ...any) + func Debugf(format string, i ...any) + func Err(i ...any) + func Errf(format string, i ...any) + func Info(i ...any) + func Infof(format string, i ...any) + func PartCaller(shortFile bool) *partCaller + func PartDateTime(layout string) *partDateTime + func PartKV(k, v any) *partString + func PartLevel() *partLevel + func PartMessage() *partMessage + func PartSince() *partSince + func PartString(raw string) *partString + func SetDefault(l *Logger) + func Warn(i ...any) + func Warnf(format string, i ...any) + type Args struct + Buffer buffer + Level Level + Msg string + PC uintptr + Time time.Time + type DailyWriter struct + func NewDailyWriter(folder, prefix string) *DailyWriter + func (dw *DailyWriter) Write(p []byte) (n int, err error) + type ILogger interface + Debug func(i ...any) + Debugf func(format string, i ...any) + Err func(i ...any) + Errf func(format string, i ...any) + Info func(i ...any) + Infof func(format string, i ...any) + Warn func(i ...any) + Warnf func(format string, i ...any) + With func(parts ...any) ILogger + func With(parts ...any) ILogger + type IPart interface + Output func(args *Args) + type Level int8 + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + type Logger struct + Level Level + func Default() *Logger + func New() *Logger + func NewDailyLogger(folder, prefix string) *Logger + func NewLogger(options ...OptionFunc) *Logger + func (l *Logger) Debug(i ...any) + func (l *Logger) Debugf(format string, i ...any) + func (l *Logger) Err(i ...any) + func (l *Logger) Errf(format string, i ...any) + func (l *Logger) Info(i ...any) + func (l *Logger) Infof(format string, i ...any) + func (l *Logger) Log(level Level, format string, msgs []any) + func (l *Logger) Warn(i ...any) + func (l *Logger) Warnf(format string, i ...any) + func (l *Logger) With(args ...any) ILogger + func (l *Logger) Write(p []byte) (n int, err error) + type OptionFunc func(l *Logger) + func OptLevel(lv Level) OptionFunc + func OptOutput(o io.Writer) OptionFunc + func OptPart(parts ...IPart) OptionFunc