Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2023 Changes in this version + func AccessLogger(logger *log.Logger) gin.HandlerFunc + func Debug(msg string, fields ...zap.Field) + func Error(msg string, fields ...zap.Field) + func GinLogger() gin.HandlerFunc + func Info(msg string, fields ...zap.Field) + func NewLogger(cfg *LoggerConfig) (*log.Logger, error) + func NewZapLogger(logFile, logLevel string, logToConsole bool, logToFile bool) + type LogConfig struct + EnableStdout bool + FilePath string + MaxBackup int + MaxSize int + PrefixName string + type LoggerConfig struct + LogBackup int + LogFile string + LogPrefix string + LogSize int + LogStdout bool