Documentation ¶
Index ¶
- Constants
- Variables
- func Caller() (name string)
- func CheckLogLevel(level int) bool
- func Critf(format string, args ...interface{})
- func Debugf(format string, args ...interface{})
- func DecreaseLogLevel() (success bool)
- func Errf(format string, args ...interface{})
- func IncreaseLogLevel() (success bool)
- func Infof(format string, args ...interface{})
- func Level() string
- func Open(logType int, level int, filename string, filesize int) error
- func PanicHook()
- func Tracef(format string, args ...interface{})
- func Warningf(format string, args ...interface{})
- type LogStat
- type Logger
Constants ¶
View Source
const Console = 3
View Source
const Crit = 1
View Source
const Debug = 4
View Source
const Err = 2
View Source
const File = 2
View Source
const Info = 0
View Source
const MB = 1048576
View Source
const None = -1
View Source
const System = 1
View Source
const Trace = 5
View Source
const Undefined = 0
View Source
const Warning = 3
Variables ¶
DefaultLogger is the default Zabbix agent 2 and Zabbix web service logger.
Functions ¶
func Open ¶
Open sets a new logger based on the log type and a new log output level
func PanicHook ¶
func PanicHook()
Types ¶
type LogStat ¶
type LogStat struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.