README ¶ xxxlogger Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Debug(message string, fields ...zap.Field) func Error(message string, fields ...zap.Field) func Info(message string, fields ...zap.Field) func InitDevLogger(logFilepath string) func InitProdLogger(logFilepath string) func Warn(message string, fields ...zap.Field) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Debug ¶ func Debug(message string, fields ...zap.Field) func Error ¶ func Error(message string, fields ...zap.Field) func Info ¶ func Info(message string, fields ...zap.Field) func InitDevLogger ¶ func InitDevLogger(logFilepath string) InitDevLogger 同时写入 控制台 和 文件 中 输出 Debug日志 func InitProdLogger ¶ func InitProdLogger(logFilepath string) InitProdLogger 只写入 文件 中 且不输出 Debug日志 func Warn ¶ func Warn(message string, fields ...zap.Field) Types ¶ This section is empty. Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.