Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Helper ¶
var Logger Helper
Logger logger single
func (*Helper) ConsoleLevel ¶
func (l *Helper) ConsoleLevel() zap.AtomicLevel
func (*Helper) FileLevel ¶
func (l *Helper) FileLevel() zap.AtomicLevel
type Options ¶
type Options struct { // log file name Filename string // Maximum size of a single log file MaxSize int // How many log files are saved MaxBackups int // How many days of logs are kept MaxDays int // Do you want to output the code location Caller bool // debug info warn error dpanic panic fatal FileLevel string // debug info warn error dpanic panic fatal ConsoleLevel string }
Click to show internal directories.
Click to hide internal directories.