Documentation ¶
Index ¶
- func New(prefix string, writer loger.Writer, config loger.Config, handle func(b []byte)) loger.Interface
- type CustomLogger
- func (l *CustomLogger) Error(_ context.Context, msg string, data ...interface{})
- func (l *CustomLogger) Info(_ context.Context, msg string, data ...interface{})
- func (l *CustomLogger) LogMode(level loger.LogLevel) loger.Interface
- func (l *CustomLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *CustomLogger) Warn(_ context.Context, msg string, data ...interface{})
- type CustomWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomLogger ¶ added in v0.0.8
func (*CustomLogger) Error ¶ added in v0.0.8
func (l *CustomLogger) Error(_ context.Context, msg string, data ...interface{})
Error print error messages
func (*CustomLogger) Info ¶ added in v0.0.8
func (l *CustomLogger) Info(_ context.Context, msg string, data ...interface{})
Info print info
func (*CustomLogger) LogMode ¶ added in v0.0.8
func (l *CustomLogger) LogMode(level loger.LogLevel) loger.Interface
LogMode log mode
type CustomWriter ¶ added in v0.1.1
type CustomWriter struct{}
Click to show internal directories.
Click to hide internal directories.