Versions in this module Expand all Collapse all v1 v1.3.1 Sep 14, 2016 Changes in this version + const DefaultKeepFiles + const DefaultRotateEveryBytes + const RotatorMaxFiles + func Critical(format string, v ...interface{}) + func Debug(selector string, format string, v ...interface{}) + func Err(format string, v ...interface{}) + func Info(format string, v ...interface{}) + func Init(name string, config *Logging) error + func IsDebug(selector string) bool + func LogInit(level Priority, prefix string, toSyslog bool, toStderr bool, ...) + func MakeDebug(selector string) func(string, ...interface{}) + func Recover(msg string) + func SetStderr() + func SetToFile(toFile bool, rotator *FileRotator) error + func SetToStderr(toStderr bool, prefix string) + func SetToSyslog(toSyslog bool, prefix string) + func WTF(format string, v ...interface{}) + func Warn(format string, v ...interface{}) + type FileRotator struct + KeepFiles *int + Name string + Path string + RotateEveryBytes *uint64 + func (rotator *FileRotator) CheckIfConfigSane() error + func (rotator *FileRotator) CreateDirectory() error + func (rotator *FileRotator) FileExists(file_no int) bool + func (rotator *FileRotator) FilePath(file_no int) string + func (rotator *FileRotator) Rotate() error + func (rotator *FileRotator) WriteLine(line []byte) error + type Logger struct + type Logging struct + Files *FileRotator + Level string + Selectors []string + To_files *bool + To_syslog *bool + type Priority int + const LOG_ALERT + const LOG_CRIT + const LOG_DEBUG + const LOG_EMERG + const LOG_ERR + const LOG_INFO + const LOG_NOTICE + const LOG_WARNING