Documentation ¶
Index ¶
- Constants
- func Crit(format string, v ...interface{})
- func Debug(format string, v ...interface{})
- func Err(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func SetDebug(state bool)
- func SetOutputURL(s string, debug ...bool) (err error)
- func Warning(format string, v ...interface{})
- type Facility
- type Logger
Constants ¶
const ( LogSystem = facilitySystem LogApplication = facilityApplication LogService = facilityService LogSecurity = facilitySecurity )
Variables ¶
This section is empty.
Functions ¶
func Crit ¶
func Crit(format string, v ...interface{})
Crit outputs critical level log output. It is usually used to output critical conditions. When this method is executed, the process abends after outputting the log. This log level need be treated as an anomaly.
func Debug ¶
func Debug(format string, v ...interface{})
Debug outputs debug level log output. It is usually used to output detailed debug information. If debug status is not enabled, no output is generated. This log level need not be treated as an anomaly. The debug status can be set from SetDebug.
func Err ¶
func Err(format string, v ...interface{})
Err outputs error level log output. It is usually used to output execution-time errors that do not require immediate action but should typically be logged and monitored. This log level need be treated as an anomaly.
func Info ¶
func Info(format string, v ...interface{})
Info outputs information level log output. It is usually used to output interesting events. This log level need not be treated as an anomaly.
func SetOutputURL ¶
SetOutputURL is to set output for netlog.