Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileWriter ¶
type FileWriter struct {
Enable bool // Enable file writer. It will override stdout as default writer.
Directory string // Output file path. Default is `/tmp/logs/`
Filename string // Output file name, it will append ext automaticlly. Default is `app`
DisableCompress bool // Disable compress the trucked file.
RollingTimePattern string // Rolling time pattern. Visit https://crontab.guru/ for more info. Default `0 0 * * *`
}
type Option ¶
type Option struct {
Level string // debug, info, warn, error, fatal. default: info
File FileWriter
}
Click to show internal directories.
Click to hide internal directories.