Documentation ¶
Index ¶
Constants ¶
View Source
const ( ShortTimestampFormat = "15:04:05" LongTimestampFormat = "2006-01-02 15:04:05.000" )
Variables ¶
View Source
var NilColorPicker = newColorPicker(false)
View Source
var NilLogger = &nilLogger{}
View Source
var NilWriter = &nilWriter{}
Functions ¶
func EmergencyLog ¶
func EmergencyLog(format string, args ...interface{})
Types ¶
type ColorPicker ¶
type FileFactory ¶
type FileFactory func(prefix string) (io.WriteCloser, io.WriteCloser, error)
type LoggerFactory ¶
type LoggerFactory struct {
// contains filtered or unexported fields
}
func NewLoggerFactory ¶
func NewLoggerFactory(logProcessor Processor, fileFactory FileFactory) *LoggerFactory
type Prefix ¶
type Prefix struct {
// contains filtered or unexported fields
}
func (*Prefix) Serialize ¶
func (p *Prefix) Serialize(picker ColorPicker) string
type Processor ¶
type Processor interface { Start() Shutdown() Logger(outFile, errFile io.WriteCloser, writePrefix bool) Logger }
func NewProcessor ¶
Click to show internal directories.
Click to hide internal directories.