Documentation ¶
Index ¶
- func New(opts ...Option) (logger.Logger, error)
- type Logger
- func (z *Logger) Debug(args ...interface{})
- func (z *Logger) Debugf(template string, args ...interface{})
- func (z *Logger) Error(args ...interface{})
- func (z *Logger) Errorf(template string, args ...interface{})
- func (z *Logger) Info(args ...interface{})
- func (z *Logger) Infof(template string, args ...interface{})
- func (z *Logger) IsDebugEnabled() bool
- func (z *Logger) IsErrorEnabled() bool
- func (z *Logger) IsInfoEnabled() bool
- func (z *Logger) IsWarnEnabled() bool
- func (z *Logger) SetLevel(lv logger.Level)
- func (z *Logger) Sync() error
- func (z *Logger) Warn(args ...interface{})
- func (z *Logger) Warnf(template string, args ...interface{})
- func (z *Logger) With(args ...interface{})
- func (z *Logger) WithTrace(traceID string)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) IsDebugEnabled ¶
func (*Logger) IsErrorEnabled ¶
func (*Logger) IsInfoEnabled ¶
func (*Logger) IsWarnEnabled ¶
Click to show internal directories.
Click to hide internal directories.