Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogWriter ¶
func GetLogWriter(cfg *Config) zapcore.WriteSyncer
Types ¶
type Config ¶
type Config struct { Filename string `json:"filename"` MaxSizeMB int `json:"max_size_mb"` MaxAgeDay int `json:"max_age_day"` MaxBackup int `json:"max_backup"` IsLocalTime bool `json:"is_local_time"` IsCompress bool `json:"is_compress"` }
func DefaultConfig ¶
func DefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.