Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2015 Changes in this version + var BasicFields = []string + var BasicFormat = "%s [%s] %s\n" + var RichFields = []string + var RichFormat = "%s [%9s] %d %s - %s:%s:%d - %s\n" + var SyslogFields = []string + var SyslogFormat = "[%s] %s\n" + func Alert(v ...interface{}) + func Alertf(format string, v ...interface{}) + func Critical(v ...interface{}) + func Criticalf(format string, v ...interface{}) + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Emergency(v ...interface{}) + func Emergencyf(format string, v ...interface{}) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatalf(format string, v ...interface{}) + func Fatalln(v ...interface{}) + func FileSink(name string, format string, fields []string) (*fileSink, error) + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func Notice(v ...interface{}) + func Noticef(format string, v ...interface{}) + func Panicf(format string, v ...interface{}) + func Panicln(v ...interface{}) + func Printf(format string, v ...interface{}) + func Println(v ...interface{}) + func SyslogSink(p Priority, format string, fields []string) (*syslogSink, error) + func Warning(v ...interface{}) + func Warningf(format string, v ...interface{}) + type Fields map[string]interface + type Logger struct + func New(prefix string, verbose bool, sinks ...Sink) *Logger + func NewSimple(sinks ...Sink) *Logger + func (logger *Logger) AddSink(s Sink) + func (logger *Logger) Alert(v ...interface{}) + func (logger *Logger) Alertf(format string, v ...interface{}) + func (logger *Logger) Critical(v ...interface{}) + func (logger *Logger) Criticalf(format string, v ...interface{}) + func (logger *Logger) Debug(v ...interface{}) + func (logger *Logger) Debugf(format string, v ...interface{}) + func (logger *Logger) Emergency(v ...interface{}) + func (logger *Logger) Emergencyf(format string, v ...interface{}) + func (logger *Logger) Error(v ...interface{}) + func (logger *Logger) Errorf(format string, v ...interface{}) + func (logger *Logger) Fatalf(format string, v ...interface{}) + func (logger *Logger) Fatalln(v ...interface{}) + func (logger *Logger) Info(v ...interface{}) + func (logger *Logger) Infof(format string, v ...interface{}) + func (logger *Logger) Log(priority Priority, v ...interface{}) + func (logger *Logger) Logf(priority Priority, format string, v ...interface{}) + func (logger *Logger) Notice(v ...interface{}) + func (logger *Logger) Noticef(format string, v ...interface{}) + func (logger *Logger) Panicf(format string, v ...interface{}) + func (logger *Logger) Panicln(v ...interface{}) + func (logger *Logger) Printf(format string, v ...interface{}) + func (logger *Logger) Println(v ...interface{}) + func (logger *Logger) Warning(v ...interface{}) + func (logger *Logger) Warningf(format string, v ...interface{}) + type Priority int + const PriAlert + const PriCrit + const PriDebug + const PriEmerg + const PriErr + const PriInfo + const PriNotice + const PriWarning + func (priority Priority) String() string + type Sink interface + Log func(Fields) + func NullSink() Sink + func PriorityFilter(priority Priority, target Sink) Sink + func WriterSink(out io.Writer, format string, fields []string) Sink