Versions in this module Expand all Collapse all v0 v0.2.2 Jun 19, 2019 v0.2.1 Jun 19, 2019 Changes in this version + const LongTimestampFormat + const ShortTimestampFormat + var NilColorPicker = newColorPicker(false) + var NilLogger = &nilLogger + var NilWriter = &nilWriter + func EmergencyLog(format string, args ...interface{}) + type ColorPicker interface + Colorize func(val string) string + type FileFactory func(prefix string) (io.WriteCloser, io.WriteCloser, error) + type LogFunc func(prefix *Prefix, format string, args ...interface{}) + type LogLevel int + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + type Logger interface + Debug func(prefix *Prefix, format string, args ...interface{}) + Error func(prefix *Prefix, format string, args ...interface{}) + Info func(prefix *Prefix, format string, args ...interface{}) + Warn func(prefix *Prefix, format string, args ...interface{}) + type LoggerFactory struct + func NewLoggerFactory(logProcessor Processor, fileFactory FileFactory) *LoggerFactory + func (f *LoggerFactory) Logger(prefix string, writePrefix bool) (Logger, error) + type Prefix struct + func NewPrefix(parts ...string) *Prefix + func (p *Prefix) Append(part string) *Prefix + func (p *Prefix) Len() int + func (p *Prefix) Serialize(picker ColorPicker) string + type Processor interface + Logger func(outFile, errFile io.WriteCloser, writePrefix bool) Logger + Shutdown func() + Start func() + func NewProcessor(quiet, verbose, colorize bool) Processor