Documentation ¶
Index ¶
- func New(writer loger.Writer, config loger.Config, loggerHandle 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(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *CustomLogger) Warn(_ context.Context, msg string, data ...interface{})
- type LoggerEventEntity
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
Click to show internal directories.
Click to hide internal directories.