Documentation
¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func GetLogger() *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func Init(config *Config) error
- func SetLevel(level string) error
- func Sync() error
- func Warn(msg string, fields ...zap.Field)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Level string `json:"level" yaml:"level"` // debug, info, warn, error
Format string `json:"format" yaml:"format"` // json, console
}
Config holds the logging configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns the default logging configuration
Click to show internal directories.
Click to hide internal directories.