Documentation ¶
Index ¶
- Constants
- type Minlog
- func (m *Minlog) Debug(ctx context.Context, msg string)
- func (m *Minlog) Debugf(ctx context.Context, msg string, args ...interface{})
- func (m *Minlog) Error(ctx context.Context, msg string)
- func (m *Minlog) Errorf(ctx context.Context, msg string, args ...interface{})
- func (m *Minlog) Exit()
- func (m *Minlog) Fatal(ctx context.Context, msg string)
- func (m *Minlog) Fatalf(ctx context.Context, msg string, args ...interface{})
- func (m *Minlog) Info(ctx context.Context, msg string)
- func (m *Minlog) Infof(ctx context.Context, msg string, args ...interface{})
- func (m *Minlog) Panic(ctx context.Context, msg string)
- func (m *Minlog) Panicf(ctx context.Context, msg string, args ...interface{})
- func (m *Minlog) Warn(ctx context.Context, msg string)
- func (m *Minlog) 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 Minlog ¶
type Minlog struct { io.StringWriter // log file writer // contains filtered or unexported fields }
Minlog minlog define
Click to show internal directories.
Click to hide internal directories.