Documentation
¶
Index ¶
- func AddHandler(hand func(*Record))
- func Crit(args ...interface{})
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func Info(args ...interface{})
- func Init(opts ...LoggerOption)
- func Panic(args ...interface{})
- func Trace(args ...interface{})
- func Warn(args ...interface{})
- type Entry
- func (e *Entry) Crit(args ...interface{})
- func (e *Entry) Debug(args ...interface{})
- func (e *Entry) Error(args ...interface{})
- func (e *Entry) Info(args ...interface{})
- func (e *Entry) Limit(dur time.Duration) *Entry
- func (e *Entry) Panic(args ...interface{})
- func (e *Entry) Trace(args ...interface{})
- func (e *Entry) Warn(args ...interface{})
- type Fields
- type Level
- type Logger
- func (l *Logger) AddHandler(hand func(*Record))
- func (l *Logger) Crit(args ...interface{})
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Trace(args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) WithFields(fields Fields) *Entry
- type LoggerOption
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandler ¶ added in v1.2.4
func AddHandler(hand func(*Record))
func Init ¶
func Init(opts ...LoggerOption)
Types ¶
type Logger ¶ added in v1.2.4
type Logger struct {
// contains filtered or unexported fields
}
func New ¶ added in v1.2.4
func New(opts ...LoggerOption) *Logger
func (*Logger) AddHandler ¶ added in v1.2.4
func (*Logger) WithFields ¶ added in v1.2.4
type LoggerOption ¶
type LoggerOption func(*Logger)
func SetIcons ¶
func SetIcons(show bool) LoggerOption
func SetMaxLimit ¶ added in v1.2.4
func SetMaxLimit(dur time.Duration) LoggerOption
func SetTimeFormat ¶
func SetTimeFormat(format string) LoggerOption
Click to show internal directories.
Click to hide internal directories.