Documentation
¶
Index ¶
- func Debug(msg string, keysAndValues ...interface{})
- func DebugSkipOne(msg string, keysAndValues ...interface{})
- func Error(msg string, keysAndValues ...interface{})
- func ErrorSkipOne(msg string, keysAndValues ...interface{})
- func Fatal(msg string, keysAndValues ...interface{})
- func Info(msg string, keysAndValues ...interface{})
- func InfoSkipOne(msg string, keysAndValues ...interface{})
- func RegisterWriter(w io.Writer) func()
- func SetLogToDisk(filename string)
- func SetNamespace(namespace, subsystem string)
- func Sync()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugSkipOne ¶
func DebugSkipOne(msg string, keysAndValues ...interface{})
func ErrorSkipOne ¶
func ErrorSkipOne(msg string, keysAndValues ...interface{})
func InfoSkipOne ¶
func InfoSkipOne(msg string, keysAndValues ...interface{})
func RegisterWriter ¶
RegisterWriter adds w as a log subscriber. Every log line written by the logger will be copied to w as JSON. The returned function removes the subscription when called.
func SetLogToDisk ¶
func SetLogToDisk(filename string)
func SetNamespace ¶
func SetNamespace(namespace, subsystem string)
SetNamespace sets the namespace and subsystem for the logger metrics. This should be called before any logging is done. Namespace is the first part of the metric name, and subsystem is the second. Namespace should be your application name, and subsystem should be the component of your application that is doing the logging.
Types ¶
This section is empty.