Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2017 Changes in this version + const DateFormat + const DefaultLevel + const LevelCritical + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelWarning + type Console struct + func NewConsole() *Console + type File struct + func NewFile(path string, overwrite bool) (*File, error) + func NewSplitFile(outpath, errpath string, overwrite bool) (*File, error) + func (fl *File) Close() + type Level uint8 + type LogWriter struct + func NewLogWriter(wo, we io.Writer) *LogWriter + func (lw *LogWriter) Close() + func (lw *LogWriter) Critical(actor, event string, attrs map[string]string) + func (lw *LogWriter) Debug(actor, event string, attrs map[string]string) + func (lw *LogWriter) Error(actor, event string, attrs map[string]string) + func (lw *LogWriter) Fatal(actor, event string, attrs map[string]string) + func (lw *LogWriter) FatalCode(exitcode int, actor, event string, attrs map[string]string) + func (lw *LogWriter) FatalNoDie(actor, event string, attrs map[string]string) + func (lw *LogWriter) Good() bool + func (lw *LogWriter) Info(actor, event string, attrs map[string]string) + func (lw *LogWriter) SetLevel(l Level) + func (lw *LogWriter) Status() error + func (lw *LogWriter) Warn(actor, event string, attrs map[string]string) + type Logger interface + Close func() + Critical func(actor, event string, attrs map[string]string) + Debug func(actor, event string, attrs map[string]string) + Error func(actor, event string, attrs map[string]string) + Fatal func(actor, event string, attrs map[string]string) + FatalCode func(exitcode int, actor, event string, attrs map[string]string) + FatalNoDie func(actor, event string, attrs map[string]string) + Good func() bool + Info func(actor, event string, attrs map[string]string) + SetLevel func(Level) + Status func() error + Warn func(actor, event string, attrs map[string]string)