Versions in this module Expand all Collapse all v1 v1.6.0 Apr 5, 2025 v1.4.0 Oct 6, 2024 Changes in this version + var Clock = mock.NewStdClock() + var ErrLog = errors.New("naza.log:fxxk") + func Assert(expected interface{}, actual interface{}, extInfo ...string) + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func Fatalln(v ...interface{}) + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func Init(modOptions ...ModOption) error + func Out(level Level, calldepth int, s string) + func Output(calldepth int, s string) error + func Panic(v ...interface{}) + func Panicf(format string, v ...interface{}) + func Panicln(v ...interface{}) + func Print(v ...interface{}) + func Printf(format string, v ...interface{}) + func Println(v ...interface{}) + func SetGlobalLogger(l Logger) + func Sync() + func Trace(v ...interface{}) + func Tracef(format string, v ...interface{}) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + type AssertBehavior uint8 + const AssertError + const AssertFatal + const AssertPanic + func (a AssertBehavior) ReadableString() string + type HookBackendOutFn func(level Level, line []byte) + type Level uint8 + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelLogNothing + const LevelPanic + const LevelTrace + const LevelWarn + func (l Level) ReadableString() string + type Logger interface + Assert func(expected interface{}, actual interface{}, extInfo ...string) + Debug func(v ...interface{}) + Debugf func(format string, v ...interface{}) + Error func(v ...interface{}) + Errorf func(format string, v ...interface{}) + Fatal func(v ...interface{}) + Fatalf func(format string, v ...interface{}) + Fatalln func(v ...interface{}) + GetOption func() Option + Info func(v ...interface{}) + Infof func(format string, v ...interface{}) + Init func(modOptions ...ModOption) error + Out func(level Level, calldepth int, s string) + Output func(calldepth int, s string) error + Panic func(v ...interface{}) + Panicf func(format string, v ...interface{}) + Panicln func(v ...interface{}) + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + Sync func() + Trace func(v ...interface{}) + Tracef func(format string, v ...interface{}) + Warn func(v ...interface{}) + Warnf func(format string, v ...interface{}) + WithPrefix func(s string) Logger + var DummyLogger Logger + func GetGlobalLogger() Logger + func New(modOptions ...ModOption) (Logger, error) + func WithPrefix(s string) Logger + type ModOption func(option *Option) + type Option struct + AssertBehavior AssertBehavior + Filename string + HookBackendOutFn HookBackendOutFn + IsRotateDaily bool + IsRotateHourly bool + IsToStdout bool + Level Level + LevelFlag bool + ShortFileFlag bool + TimestampFlag bool + TimestampWithMsFlag bool + func GetOption() Option