package
Version:
v0.1.4-alpha
Opens a new window with list of versions in this module.
Published: Mar 23, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewFileLogger(filePath string) *logger
NewStdLogger output log to a file
func NewStdLogger() *logger
NewStdLogger output log to command line
const (
LevelInfo LogLevel = iota + 1
LevelWarn
LevelError
LevelFatal
)
type Logger interface {
Infof(string, ...interface{})
Warnf(string, ...interface{})
Errorf(string, ...interface{})
Fatalf(string, ...interface{})
}
Interface logger interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.