Documentation ¶
Index ¶
- Constants
- func ErrorLog() string
- func LevelName(mask int8) string
- func Register(name string, driver IFactory)
- func SetLogger(logger IWriter)
- func SetPrefix(prefix string)
- func Write(mask int8, v ...interface{})
- func Writef(mask int8, format string, v ...interface{})
- type FileLog
- type IFactory
- type IWriter
- type LogFileSt
- func (self *LogFileSt) ErrorFs() *log.Logger
- func (self *LogFileSt) Init() *LogFileSt
- func (self *LogFileSt) SetOutPutFile(isInit bool) *LogFileSt
- func (self *LogFileSt) SetPrefix(prefix string)
- func (self *LogFileSt) Write(mask int8, v ...interface{})
- func (self *LogFileSt) Writef(mask int8, format string, v ...interface{})
- type LogStdout
- type StdoutLog
Constants ¶
View Source
const ( FATAL ERROR DEBUG INFO )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IWriter ¶
type LogFileSt ¶
type LogFileSt struct { Prefix string `yaml:"prefix"` File string `yaml:"file"` Dir string `yaml:"dir"` Mask int8 `yaml:"mask"` // contains filtered or unexported fields }
func (*LogFileSt) SetOutPutFile ¶
重新创建文件处理句柄逻辑
Click to show internal directories.
Click to hide internal directories.