Documentation ¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Errorf(msg string, err error, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(msg string, err error, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func InitLogger() *zap.Logger
- func Sync()
- func SyncWhenStop()
- func Warn(msg string, fields ...zap.Field)
- type Config
- type VersionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Info ¶
Wrapper of Zap's Info. Outputs a short log to the console. Detailed json log output to log file.
func InitLogger ¶
Initialize the Logger. Outputs short logs to the console and Write structured and detailed json logs to the log file.
Types ¶
Click to show internal directories.
Click to hide internal directories.