Documentation ¶
Index ¶
- type Level
- type Logger
- type StdLogger
- func (logger *StdLogger) Debug(v ...interface{})
- func (logger *StdLogger) Destroy()
- func (logger *StdLogger) Error(v ...interface{})
- func (logger *StdLogger) Info(v ...interface{})
- func (logger *StdLogger) Panic(v ...interface{})
- func (logger *StdLogger) Scope(callback func(Logger))
- func (logger *StdLogger) Tagged(tags ...string) Logger
- func (logger *StdLogger) Warn(v ...interface{})
- type ZapLogger
- func (logger *ZapLogger) Debug(v ...interface{})
- func (logger *ZapLogger) Destroy()
- func (logger *ZapLogger) Error(v ...interface{})
- func (logger *ZapLogger) Info(v ...interface{})
- func (logger *ZapLogger) Panic(v ...interface{})
- func (logger *ZapLogger) Scope(callback func(Logger))
- func (logger *ZapLogger) Tagged(tags ...string) Logger
- func (logger *ZapLogger) Warn(v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(v ...interface{}) Info(v ...interface{}) Warn(v ...interface{}) Error(v ...interface{}) Panic(v ...interface{}) // Must call panic() Tagged(tags ...string) Logger // Tagged method must be thread-safe and immutable Scope(callback func(Logger)) Destroy() }
Time format must be ISO 8601 with microseconds
type StdLogger ¶
type StdLogger struct {
// contains filtered or unexported fields
}
func NewStdLogger ¶
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
func NewZapLogger ¶
Click to show internal directories.
Click to hide internal directories.