Versions in this module Expand all Collapse all v1 v1.0.0 Aug 4, 2019 Changes in this version + const FieldKeyError + const FieldKeyFormatArgs + const FieldKeyLevel + const FieldKeyMessage + func Configure(adapter ILogAdapter) + func Debug(msg string, args ...Arg) + func Error(msg string, args ...Arg) + func Fatal(msg string, args ...Arg) + func Info(msg string, args ...Arg) + func Log(level Level, msg string, args ...Arg) + func Panic(msg string, args ...Arg) + func Trace(msg string, args ...Arg) + func Warn(msg string, args ...Arg) + type AdapterLog struct + func NewAdapterLog(out io.Writer, prefix string, flag int) *AdapterLog + func (t *AdapterLog) Log(fields Fields) + type AdapterMock struct + func NewAdapterMock(ctrl *gomock.Controller) *AdapterMock + func (m *AdapterMock) EXPECT() *AdapterMockRecorder + func (m *AdapterMock) Log(fields Fields) + type AdapterMockRecorder struct + func (mr *AdapterMockRecorder) Log(fields interface{}) *gomock.Call + type AdapterTest struct + func (t *AdapterTest) Log(fields Fields) + type Arg func(fields Fields) + func WithError(err error) Arg + func WithField(key string, val interface{}) Arg + func WithFields(fields Fields) Arg + func WithFormatArg(args ...interface{}) Arg + type Fields map[string]interface + func (d Fields) DeleteAllKnowFields() + func (d Fields) Error() error + func (d Fields) IsKnowFieldKey(key string) bool + func (d Fields) Level() Level + func (d Fields) Message() string + func (d Fields) Rest() Fields + func (d Fields) String() string + type ILogAdapter interface + Log func(fields Fields) + func NewAdapterTest(logFunc func(fields Fields)) ILogAdapter + type Level int + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelNone + const LevelPanic + const LevelTrace + const LevelWarn + func (t Level) String() string + type Logger struct + func NewLogger(adapter ILogAdapter) *Logger + func (t *Logger) Debug(msg string, args ...Arg) + func (t *Logger) Error(msg string, args ...Arg) + func (t *Logger) Fatal(msg string, args ...Arg) + func (t *Logger) Info(msg string, args ...Arg) + func (t *Logger) Log(level Level, msg string, args ...Arg) + func (t *Logger) Panic(msg string, args ...Arg) + func (t *Logger) Trace(msg string, args ...Arg) + func (t *Logger) Warn(msg string, args ...Arg)