Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogger ¶
Types ¶
type Logger ¶
type Logger struct {
LoggerConfig
}
func GetLogger ¶
func GetLogger(cfg ...LoggerConfig) *Logger
type LoggerConfig ¶
type Option ¶
type Option func(*ZapComponent)
type ZapComponent ¶
type ZapComponent struct { Debug string `toml:"debug"` Info string `toml:"info"` Warn string `toml:"warn"` Err string `toml:"err"` MaxSize int `toml:"max_size"` MaxAge int `toml:"max_age"` MaxBackup int `toml:"max_backup"` Compress bool `toml:"compress"` Json bool `toml:"json"` // contains filtered or unexported fields }
func (*ZapComponent) IsReady ¶
func (zc *ZapComponent) IsReady()
func (*ZapComponent) Name ¶
func (zc *ZapComponent) Name() string
func (*ZapComponent) Ready ¶
func (zc *ZapComponent) Ready() bool
Click to show internal directories.
Click to hide internal directories.