Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConsole ¶ added in v1.1.0
func InitConsole(level string)
Types ¶
type Helper ¶
Helper zap log helper
var Logger Helper
Logger logger single
func (*Helper) ConsoleLevel ¶
func (l *Helper) ConsoleLevel() zap.AtomicLevel
ConsoleLevel return console level
type Options ¶
type Options struct { // log save filename Filename string // MB MaxSize int // number of files MaxBackups int // day MaxDays int // if true output code line Caller bool // file log level [debug info warn error dpanic panic fatal] FileLevel string // console file level [debug info warn error dpanic panic fatal] ConsoleLevel string }
Options logger options
type SnapshotListener ¶
type SnapshotListener struct {
// contains filtered or unexported fields
}
SnapshotListener a log listener
func NewSnapshotListener ¶
func NewSnapshotListener(done <-chan struct{}) *SnapshotListener
NewSnapshotListener .
Click to show internal directories.
Click to hide internal directories.