Documentation
¶
Index ¶
- func GetLogHead(logtag string) string
- func Recover(names ...string)
- type LogFile
- func (log *LogFile) Debug(format string, args ...interface{})
- func (log *LogFile) DebugPrint(args ...interface{})
- func (log *LogFile) Error(format string, args ...interface{})
- func (log *LogFile) ErrorPrint(args ...interface{})
- func (log *LogFile) Info(format string, args ...interface{})
- func (log *LogFile) InfoPrint(args ...interface{})
- func (log *LogFile) Init(path string, level int, maxsz int)
- func (log *LogFile) Level() int
- func (log *LogFile) Notice(format string, args ...interface{})
- func (log *LogFile) NoticePrint(args ...interface{})
- func (log *LogFile) Tips(format string, args ...interface{})
- func (log *LogFile) TipsPrint(args ...interface{})
- func (log *LogFile) Trace(format string, args ...interface{})
- func (log *LogFile) TracePrint(args ...interface{})
- func (log *LogFile) Write(data []byte)
- func (log *LogFile) WriteString(msg string)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogHead ¶
Types ¶
type LogFile ¶
type LogFile struct {
// contains filtered or unexported fields
}
func (*LogFile) DebugPrint ¶
func (log *LogFile) DebugPrint(args ...interface{})
func (*LogFile) ErrorPrint ¶
func (log *LogFile) ErrorPrint(args ...interface{})
func (*LogFile) NoticePrint ¶
func (log *LogFile) NoticePrint(args ...interface{})
func (*LogFile) TracePrint ¶
func (log *LogFile) TracePrint(args ...interface{})
func (*LogFile) WriteString ¶
type Logger ¶
type Logger interface { Level() int Write(data []byte) WriteString(msg string) Tips(format string, args ...interface{}) Info(format string, args ...interface{}) Debug(format string, args ...interface{}) Trace(format string, args ...interface{}) Error(format string, args ...interface{}) Notice(format string, args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.