Documentation ¶
Overview ¶
Package logs 日志.
多级日志,文件滚动,不同级别日志可以分别使用不同文件。
Index ¶
- Variables
- func Close()
- func LogFile(path, name string) (io.Writer, error)
- func SetDebug(writer io.Writer)
- func SetDebugFile(path, file string) error
- func SetError(writer io.Writer)
- func SetErrorFile(path, file string) error
- func SetInfo(writer io.Writer)
- func SetInfoFile(path, file string) error
- func SetLevel(level Level)
- func SetLog(writer io.Writer)
- func SetLogFile(path, file string) error
- func SetTrace(writer io.Writer)
- func SetTraceFile(path, file string) error
- func SetWarn(writer io.Writer)
- func SetWarnFile(path, file string) error
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( T = log.New(_workers[Trace], "[T] ", _flag) D = log.New(_workers[Debug], "[D] ", _flag) I = log.New(_workers[Info], "[I] ", _flag) W = log.New(_workers[Warn], "[W] ", _flag) E = log.New(_workers[Error], "[E] ", _flag) )
nolint: gochecknoglobals, varnamelen
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.