Versions in this module Expand all Collapse all v1 v1.0.2 Feb 27, 2019 v1.0.1 Feb 27, 2019 Changes in this version + const FormatEnv + const FormatHappy + const FormatJSON + const FormatText + const LevelAlert + const LevelAll + const LevelCritical + const LevelDebug + const LevelEmergency + const LevelEnv + const LevelError + const LevelFatal + const LevelInfo + const LevelNotice + const LevelOff + const LevelTrace + const LevelWarn + const Version + var AssignmentChar = ": " + var KeyMap = &KeyMapping + var LevelAtoi = map[string]int + var LevelMap = map[int]string + var NullLog = &NullLogger + var Separator = " " + func Debug(msg string, args ...interface{}) + func Error(msg string, args ...interface{}) + func Fatal(msg string, args ...interface{}) + func Info(msg string, args ...interface{}) + func IsDebug() bool + func IsInfo() bool + func IsTrace() bool + func IsWarn() bool + func NewConcurrentWriter(writer io.Writer) io.Writer + func ProcessEnv(env *Configuration) + func ProcessLogxiColorsEnv(env string) + func ProcessLogxiEnv(env string) + func ProcessLogxiFormatEnv(env string) + func RegisterFormatFactory(kind string, fn CreateFormatterFunc) + func Suppress(quiet bool) + func Trace(msg string, args ...interface{}) + func Warn(msg string, args ...interface{}) + type BufferPool struct + func NewBufferPool() *BufferPool + func (bp *BufferPool) Get() *bytes.Buffer + func (bp *BufferPool) Put(b *bytes.Buffer) + type ConcurrentWriter struct + func (cw *ConcurrentWriter) Write(p []byte) (n int, err error) + type Configuration struct + Colors string + Format string + Levels string + type CreateFormatterFunc func(name, kind string) (Formatter, error) + type DefaultLogger struct + func (l *DefaultLogger) Debug(msg string, args ...interface{}) + func (l *DefaultLogger) Error(msg string, args ...interface{}) error + func (l *DefaultLogger) Fatal(msg string, args ...interface{}) + func (l *DefaultLogger) Info(msg string, args ...interface{}) + func (l *DefaultLogger) IsDebug() bool + func (l *DefaultLogger) IsInfo() bool + func (l *DefaultLogger) IsTrace() bool + func (l *DefaultLogger) IsWarn() bool + func (l *DefaultLogger) Log(level int, msg string, args []interface{}) + func (l *DefaultLogger) SetFormatter(formatter Formatter) + func (l *DefaultLogger) SetLevel(level int) + func (l *DefaultLogger) Trace(msg string, args ...interface{}) + func (l *DefaultLogger) Warn(msg string, args ...interface{}) error + type Formatter interface + Format func(writer io.Writer, level int, msg string, args []interface{}) + type HappyDevFormatter struct + func NewHappyDevFormatter(name string) *HappyDevFormatter + func (hd *HappyDevFormatter) Format(writer io.Writer, level int, msg string, args []interface{}) + type JSONFormatter struct + func NewJSONFormatter(name string) *JSONFormatter + func (jf *JSONFormatter) Format(writer io.Writer, level int, msg string, args []interface{}) + func (jf *JSONFormatter) LogEntry(level int, msg string, args []interface{}) map[string]interface{} + type KeyMapping struct + CallStack string + Level string + Message string + Name string + PID string + Time string + type Logger interface + Debug func(msg string, args ...interface{}) + Error func(msg string, args ...interface{}) error + Fatal func(msg string, args ...interface{}) + Info func(msg string, args ...interface{}) + IsDebug func() bool + IsInfo func() bool + IsTrace func() bool + IsWarn func() bool + Log func(level int, msg string, args []interface{}) + SetLevel func(int) + Trace func(msg string, args ...interface{}) + Warn func(msg string, args ...interface{}) error + var DefaultLog Logger + var InternalLog Logger + func New(name string) Logger + func NewLogger(writer io.Writer, name string) Logger + func NewLogger3(writer io.Writer, name string, formatter Formatter) Logger + type NullLogger struct + func (l *NullLogger) Debug(msg string, args ...interface{}) + func (l *NullLogger) Error(msg string, args ...interface{}) error + func (l *NullLogger) Fatal(msg string, args ...interface{}) + func (l *NullLogger) Info(msg string, args ...interface{}) + func (l *NullLogger) IsDebug() bool + func (l *NullLogger) IsInfo() bool + func (l *NullLogger) IsTrace() bool + func (l *NullLogger) IsWarn() bool + func (l *NullLogger) Log(level int, msg string, args []interface{}) + func (l *NullLogger) SetFormatter(formatter Formatter) + func (l *NullLogger) SetLevel(level int) + func (l *NullLogger) Trace(msg string, args ...interface{}) + func (l *NullLogger) Warn(msg string, args ...interface{}) error + type TextFormatter struct + func NewTextFormatter(name string) *TextFormatter + func (tf *TextFormatter) Format(writer io.Writer, level int, msg string, args []interface{})