Documentation ¶
Index ¶
- Constants
- func Configure(opts Options) error
- func RegisterWriter(name string, b WriterBuilder)
- func SetDefaultLevel(lvl Level)
- func SetManager(m Manager)
- type Entry
- type JSONLayout
- type Layout
- type Level
- type Logger
- type LoggerOptions
- type Manager
- type Options
- type Segment
- type TextLayout
- type Writer
- type WriterBuilder
- type WriterBuilders
- type WriterOptions
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func RegisterWriter ¶
func RegisterWriter(name string, b WriterBuilder)
func SetDefaultLevel ¶
func SetDefaultLevel(lvl Level)
func SetManager ¶
func SetManager(m Manager)
Types ¶
type Entry ¶
type Entry interface { WithField(key string, value interface{}) Entry WithFields(fields map[string]interface{}) Entry Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) }
type JSONLayout ¶
type JSONLayout struct {
// contains filtered or unexported fields
}
type Logger ¶
type Logger interface { io.Writer Name() string Level() Level SetLevel(lvl Level) IsEnabled(lvl Level) bool WithField(key string, value interface{}) Entry WithFields(fields map[string]interface{}) Entry Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) }
type LoggerOptions ¶
type Options ¶
type Options struct { Loggers []LoggerOptions Writers []WriterOptions }
type TextLayout ¶
type TextLayout struct {
// contains filtered or unexported fields
}
type WriterBuilders ¶
type WriterBuilders map[string]WriterBuilder
Click to show internal directories.
Click to hide internal directories.