Documentation ¶
Index ¶
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Init()
- func SetComponentName(component string)
- func Warn(a ...interface{})
- func Warnf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(a ...interface{})
Debug writes the given input to syslog (sev=LOG_DEBUG) if snap `debug` configuration option is set to `true`. It formats similar to fmt.Sprint
func Debugf ¶
func Debugf(format string, a ...interface{})
Debugf writes the given input to syslog (sev=LOG_DEBUG) if snap `debug` configuration option is set to `true`. It formats similar to fmt.Sprintf
func Error ¶
func Error(a ...interface{})
Error writes the given input to syslog (sev=LOG_ERROR). It formats similar to fmt.Sprint
func Errorf ¶
func Errorf(format string, a ...interface{})
Errorf writes the given input to syslog (sev=LOG_ERROR). It formats similar to fmt.Sprintf
func Fatal ¶
func Fatal(a ...interface{})
Fatal calls Error followed by os.Exit(1). It formats similar to fmt.Sprint
func Fatalf ¶
func Fatalf(format string, a ...interface{})
Fatalf calls Errorf followed by os.Exit(1). It formats similar to fmt.Sprintf
func Info ¶
func Info(a ...interface{})
Info writes the given input to syslog (sev=LOG_INFO). It formats similar to fmt.Sprint
func Infof ¶
func Infof(format string, a ...interface{})
Infof writes the given input to syslog (sev=LOG_INFO). It formats similar to fmt.Sprintf
func SetComponentName ¶
func SetComponentName(component string)
SetComponentName adds a component name to syslog tag as "my-snap.<component>" The default tag is just "my-snap", read from the snap environment. This function is NOT thread-safe. It should not be called concurrently with the other logging functions of this package.
Types ¶
This section is empty.