Documentation ¶
Index ¶
- Constants
- type Mlog
- func (m *Mlog) Debug(ctx context.Context, msg string)
- func (m *Mlog) Debugf(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Error(ctx context.Context, msg string)
- func (m *Mlog) Errorf(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Exit()
- func (m *Mlog) Fatal(ctx context.Context, msg string)
- func (m *Mlog) Fatalf(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Info(ctx context.Context, msg string)
- func (m *Mlog) Infof(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Panic(ctx context.Context, msg string)
- func (m *Mlog) Panicf(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Warn(ctx context.Context, msg string)
- func (m *Mlog) Warnf(ctx context.Context, msg string, args ...interface{})
- type Option
Constants ¶
View Source
const ( KB // 1KB MB // 1MB GB // 1GB Trace = iota // Trace log level, must have a trace key with value in context Info // Info level Warn // Warn level Debug // Debug level Error // Error level Panic // Panic level Fatal // Fatal level INFO = "[INFO]" WARN = "[WARN]" DEBUG = "[DEBUG]" ERROR = "[ERROR]" PANIC = "[PANIC]" FATAL = "[FATAL]" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mlog ¶
type Mlog struct { io.StringWriter // log file writer // contains filtered or unexported fields }
Mlog minlog define
Click to show internal directories.
Click to hide internal directories.