Documentation
¶
Index ¶
- Constants
- type Mlog
- func (m *Mlog) Debug(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Error(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Exit()
- func (m *Mlog) Fatal(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Info(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Panic(ctx context.Context, msg string, args ...interface{})
- func (m *Mlog) Warn(ctx context.Context, msg string, args ...interface{})
- type Option
Constants ¶
View Source
const ( 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 logger data struct define
Click to show internal directories.
Click to hide internal directories.