Versions in this module Expand all Collapse all v0 v0.1.1 Aug 14, 2024 v0.1.0 Aug 3, 2024 v0.0.0 Jul 22, 2024 Changes in this version + const DefaultLevels + const DefaultLogFormat + const DefaultTimeFormat + var Default = New() + var DefaultFormatter = NewFormatter(DefaultLogFormat, DefaultTimeFormat, DefaultLevels) + var ErrorStackTrace = false + func Err(err error) error + func Errorf(format string, args ...any) (err error) + func Printf(format string, args ...any) + func Println(a ...any) + type ErrStack struct + func (e ErrStack) Error() string + func (e ErrStack) Stack() []byte + type Formatter struct + func NewFormatter(format, time, level string) *Formatter + func (f *Formatter) Bytes(l Log) []byte + func (f *Formatter) String(l Log) (line string) + type Level int + const Debug + const Error + const Fatal + const Info + const Panic + const Warning + type Log struct + Errors []error + Level Level + Message string + Pid int + Scopes []string + Stack []byte + Time time.Time + type Logger interface + D func() Logger + E func() Logger + F func() Logger + Flush func() + I func() Logger + Msg func(string) Logger + Out func(Output) Logger + P func() Logger + Printf func(string, ...any) + Println func(...any) + Scope func(string, ...any) Logger + Set func(ctx *context.Context) Logger + Type func(any) Logger + W func() Logger + func Get(ctx context.Context) Logger + func New() Logger + func Scope(format string, args ...any) Logger + func Type(a any) Logger + type Output func(Log) + var DefaultOutput Output = func(log Log) { ... }