Documentation ¶
Index ¶
- Constants
- func NewCore(level, format, logPath, linkName string) (zapcore.Core, error)
- func NewEncoder(format string) zapcore.Encoder
- func NewLogger(conf *koanf.Koanf) (*zap.SugaredLogger, error)
- func NewTestLogger() (*zap.SugaredLogger, error)
- func NewWrite(logPath string, linkName string) (zapcore.WriteSyncer, error)
- type ZapWriter
Constants ¶
View Source
const ( TEXT = "text" JSON = "json" )
View Source
const ( Debug = "debug" Info = "info" Warn = "warn" Error = "error" Fatal = "fatal" )
Variables ¶
This section is empty.
Functions ¶
func NewEncoder ¶
func NewLogger ¶
func NewLogger(conf *koanf.Koanf) (*zap.SugaredLogger, error)
func NewTestLogger ¶
func NewTestLogger() (*zap.SugaredLogger, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.