Documentation
¶
Index ¶
- Variables
- type Log
- func (*Log) Alert(args ...interface{})
- func (*Log) Alertf(format string, args ...interface{})
- func (*Log) Crit(args ...interface{})
- func (*Log) Critf(format string, args ...interface{})
- func (l *Log) Debug(args ...interface{})
- func (l *Log) Debugf(format string, args ...interface{})
- func (*Log) Emerg(args ...interface{})
- func (*Log) Emergf(format string, args ...interface{})
- func (*Log) Err(args ...interface{})
- func (*Log) Errf(format string, args ...interface{})
- func (*Log) Info(args ...interface{})
- func (*Log) Infof(format string, args ...interface{})
- func (*Log) Notice(args ...interface{})
- func (*Log) Noticef(format string, args ...interface{})
- func (l *Log) Trace(msg string) func()
- func (*Log) Warn(args ...interface{})
- func (*Log) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugPtr *log.Logger
View Source
var TracePtr *log.Logger
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct{}
func NewFileLogger ¶
NewFileLogger func - creating new file logger.
Fields:
LogFile - path to log file LogLevel - log level, possible levels: 0 - Emergency, with panic exit. 1 - Alert, with exit 2. 2 - Critical, with ext 1. 3 - Errors. 4 - Warnings. 5 - Notice. 6 - Info. 7 - Debug. 8 - Trace.
func (*Log) Alert ¶
func (*Log) Alert(args ...interface{})
Alert logging a message using Alert (1) as log level and call os.Exit(1).
func (*Log) Crit ¶
func (*Log) Crit(args ...interface{})
Crit logging a message using Crit (2) as log level and call os.Exit(1).
func (*Log) Debug ¶
func (l *Log) Debug(args ...interface{})
Debug logging a message using DEBUG as log level.
func (*Log) Emerg ¶
func (*Log) Emerg(args ...interface{})
Emerg logging a message using Emerg (0) as log level and call panic(fmt string).
func (*Log) Emergf ¶
Emergf logging a message using Emerg (0) as log level and call panic(fmt string).
func (*Log) Err ¶
func (*Log) Err(args ...interface{})
Err logging a message using Error (3) as log level.
func (*Log) Info ¶
func (*Log) Info(args ...interface{})
Info logging a message using Info (6) as log level.
func (*Log) Notice ¶
func (*Log) Notice(args ...interface{})
Notice logging a message using Notice (5) as log level.
Click to show internal directories.
Click to hide internal directories.