Documentation ¶
Overview ¶
Package log provides syslog logging to a local or remote Syslog logger. To specify a remote syslog host, set the "log.sysloghost" key in the Skynet configuration. Specify the port with "log.syslogport". If "log.sysloghost" is not provided, skynet will log to local syslog.
Index ¶
- func Debug(messages ...interface{})
- func Debugf(format string, messages ...interface{})
- func Error(messages ...interface{})
- func Errorf(format string, messages ...interface{})
- func Fatal(messages ...interface{})
- func Fatalf(format string, messages ...interface{})
- func Info(messages ...interface{})
- func Infof(format string, messages ...interface{})
- func Initialize()
- func Panic(messages ...interface{})
- func Panicf(format string, messages ...interface{})
- func Printf(level LogLevel, format string, messages ...interface{})
- func Println(level LogLevel, messages ...interface{})
- func SetLogLevel(level LogLevel)
- func SetSyslogHost(host string)
- func SetSyslogPort(port int)
- func Trace(messages ...interface{})
- func Tracef(format string, messages ...interface{})
- func Warn(messages ...interface{})
- func Warnf(format string, messages ...interface{})
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Call Initialize after setting (or not setting) SyslogHost and SyslogPort when they're read from configuration source.
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
func SetSyslogHost ¶
func SetSyslogHost(host string)
func SetSyslogPort ¶
func SetSyslogPort(port int)
Types ¶
Click to show internal directories.
Click to hide internal directories.