Documentation ¶
Index ¶
- type GoLogger
- func (GoLogger) Debug(args ...interface{})
- func (GoLogger) DebugDynamic(l func() string)
- func (GoLogger) Debugf(format string, args ...interface{})
- func (GoLogger) Debugw(msg string, keysAndValues ...interface{})
- func (GoLogger) Error(args ...interface{})
- func (GoLogger) Errorf(format string, args ...interface{})
- func (GoLogger) Errorw(msg string, keysAndValues ...interface{})
- func (GoLogger) Fatal(args ...interface{})
- func (GoLogger) Fatalf(format string, args ...interface{})
- func (GoLogger) Fatalw(msg string, keysAndValues ...interface{})
- func (GoLogger) Info(args ...interface{})
- func (GoLogger) InfoDynamic(l func() string)
- func (GoLogger) Infof(format string, args ...interface{})
- func (GoLogger) Infow(msg string, keysAndValues ...interface{})
- func (GoLogger) Panic(args ...interface{})
- func (GoLogger) Panicf(format string, args ...interface{})
- func (GoLogger) Panicw(msg string, keysAndValues ...interface{})
- func (GoLogger) Warn(args ...interface{})
- func (GoLogger) Warnf(format string, args ...interface{})
- func (GoLogger) Warnw(msg string, keysAndValues ...interface{})
- type HoleLogger
- func (h HoleLogger) Debug(args ...interface{})
- func (h HoleLogger) DebugDynamic(getStr func() string)
- func (h HoleLogger) Debugf(format string, args ...interface{})
- func (h HoleLogger) Debugw(msg string, keysAndValues ...interface{})
- func (h HoleLogger) Error(args ...interface{})
- func (h HoleLogger) Errorf(format string, args ...interface{})
- func (h HoleLogger) Errorw(msg string, keysAndValues ...interface{})
- func (h HoleLogger) Fatal(args ...interface{})
- func (h HoleLogger) Fatalf(format string, args ...interface{})
- func (h HoleLogger) Fatalw(msg string, keysAndValues ...interface{})
- func (h HoleLogger) Info(args ...interface{})
- func (h HoleLogger) InfoDynamic(getStr func() string)
- func (h HoleLogger) Infof(format string, args ...interface{})
- func (h HoleLogger) Infow(msg string, keysAndValues ...interface{})
- func (h HoleLogger) Panic(args ...interface{})
- func (h HoleLogger) Panicf(format string, args ...interface{})
- func (h HoleLogger) Panicw(msg string, keysAndValues ...interface{})
- func (h HoleLogger) Warn(args ...interface{})
- func (h HoleLogger) Warnf(format string, args ...interface{})
- func (h HoleLogger) Warnw(msg string, keysAndValues ...interface{})
- type TestLogger
- func (l TestLogger) Debug(args ...interface{})
- func (l TestLogger) DebugDynamic(lf func() string)
- func (l TestLogger) Debugf(format string, args ...interface{})
- func (l TestLogger) Debugw(msg string, keysAndValues ...interface{})
- func (l TestLogger) Error(args ...interface{})
- func (l TestLogger) Errorf(format string, args ...interface{})
- func (l TestLogger) Errorw(msg string, keysAndValues ...interface{})
- func (l TestLogger) Fatal(args ...interface{})
- func (l TestLogger) Fatalf(format string, args ...interface{})
- func (l TestLogger) Fatalw(msg string, keysAndValues ...interface{})
- func (l TestLogger) Info(args ...interface{})
- func (l TestLogger) InfoDynamic(lf func() string)
- func (l TestLogger) Infof(format string, args ...interface{})
- func (l TestLogger) Infow(msg string, keysAndValues ...interface{})
- func (l TestLogger) Panic(args ...interface{})
- func (l TestLogger) Panicf(format string, args ...interface{})
- func (l TestLogger) Panicw(m string, keysAndValues ...interface{})
- func (l TestLogger) Warn(args ...interface{})
- func (l TestLogger) Warnf(format string, args ...interface{})
- func (l TestLogger) Warnw(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoLogger ¶
type GoLogger struct{}
GoLogger is a golang system log implementation of protocol.Logger, it's for unit test
func (GoLogger) Debug ¶
func (GoLogger) Debug(args ...interface{})
Debug debug log print @param args
func (GoLogger) DebugDynamic ¶
DebugDynamic debug log print @param l
func (GoLogger) Error ¶
func (GoLogger) Error(args ...interface{})
Error error log print @param args
func (GoLogger) InfoDynamic ¶
InfoDynamic info log print @param l
type HoleLogger ¶
type HoleLogger struct { }
HoleLogger do record nothing 不做任何日志记录的Logger,主要用于BenchmarkTest性能测试的场景
func (HoleLogger) DebugDynamic ¶
func (h HoleLogger) DebugDynamic(getStr func() string)
DebugDynamic nothing @param getStr
func (HoleLogger) Debugf ¶
func (h HoleLogger) Debugf(format string, args ...interface{})
Debugf nothing @param format @param args
func (HoleLogger) Debugw ¶
func (h HoleLogger) Debugw(msg string, keysAndValues ...interface{})
Debugw nothing @param msg @param keysAndValues
func (HoleLogger) Errorf ¶
func (h HoleLogger) Errorf(format string, args ...interface{})
Errorf nothing @param format @param args
func (HoleLogger) Errorw ¶
func (h HoleLogger) Errorw(msg string, keysAndValues ...interface{})
Errorw nothing @param msg @param keysAndValues
func (HoleLogger) Fatal ¶
func (h HoleLogger) Fatal(args ...interface{})
Fatal os.Exit(1) @param args
func (HoleLogger) Fatalf ¶
func (h HoleLogger) Fatalf(format string, args ...interface{})
Fatalf os.Exit(1) @param format @param args
func (HoleLogger) Fatalw ¶
func (h HoleLogger) Fatalw(msg string, keysAndValues ...interface{})
Fatalw os.Exit(1) @param msg @param keysAndValues
func (HoleLogger) InfoDynamic ¶
func (h HoleLogger) InfoDynamic(getStr func() string)
InfoDynamic nothing @param getStr
func (HoleLogger) Infof ¶
func (h HoleLogger) Infof(format string, args ...interface{})
Infof nothing @param format @param args
func (HoleLogger) Infow ¶
func (h HoleLogger) Infow(msg string, keysAndValues ...interface{})
Infow nothing @param msg @param keysAndValues
func (HoleLogger) Panicf ¶
func (h HoleLogger) Panicf(format string, args ...interface{})
Panicf panic @param format @param args
func (HoleLogger) Panicw ¶
func (h HoleLogger) Panicw(msg string, keysAndValues ...interface{})
Panicw panic @param msg @param keysAndValues
func (HoleLogger) Warnf ¶
func (h HoleLogger) Warnf(format string, args ...interface{})
Warnf nothing @param format @param args
func (HoleLogger) Warnw ¶
func (h HoleLogger) Warnw(msg string, keysAndValues ...interface{})
Warnw nothing @param msg @param keysAndValues
type TestLogger ¶
type TestLogger struct {
// contains filtered or unexported fields
}
TestLogger is a golang system log implementation of protocol.Logger, it's for unit test
func NewTestLogger ¶
func NewTestLogger(t testing.TB) *TestLogger
NewTestLogger TestLogger constructor @param t @return *TestLogger
func (TestLogger) Debug ¶
func (l TestLogger) Debug(args ...interface{})
Debug debug log print @param args
func (TestLogger) DebugDynamic ¶
func (l TestLogger) DebugDynamic(lf func() string)
DebugDynamic debug log print @param lf
func (TestLogger) Debugf ¶
func (l TestLogger) Debugf(format string, args ...interface{})
Debugf debug log print @param format @param args
func (TestLogger) Debugw ¶
func (l TestLogger) Debugw(msg string, keysAndValues ...interface{})
Debugw debug log print @param msg @param keysAndValues
func (TestLogger) Error ¶
func (l TestLogger) Error(args ...interface{})
Error error log print @param args
func (TestLogger) Errorf ¶
func (l TestLogger) Errorf(format string, args ...interface{})
Errorf error log print @param format @param args
func (TestLogger) Errorw ¶
func (l TestLogger) Errorw(msg string, keysAndValues ...interface{})
Errorw error log print @param msg @param keysAndValues
func (TestLogger) Fatalf ¶
func (l TestLogger) Fatalf(format string, args ...interface{})
Fatalf t.Fatalf @param format @param args
func (TestLogger) Fatalw ¶
func (l TestLogger) Fatalw(msg string, keysAndValues ...interface{})
Fatalw t.Fatalf @param msg @param keysAndValues
func (TestLogger) Info ¶
func (l TestLogger) Info(args ...interface{})
Info info log print @param args
func (TestLogger) InfoDynamic ¶
func (l TestLogger) InfoDynamic(lf func() string)
InfoDynamic info log print @param lf
func (TestLogger) Infof ¶
func (l TestLogger) Infof(format string, args ...interface{})
Infof info log print @param format @param args
func (TestLogger) Infow ¶
func (l TestLogger) Infow(msg string, keysAndValues ...interface{})
Infow info log print @param msg @param keysAndValues
func (TestLogger) Panic ¶
func (l TestLogger) Panic(args ...interface{})
Panic log print and panic @param args
func (TestLogger) Panicf ¶
func (l TestLogger) Panicf(format string, args ...interface{})
Panicf log print and panic @param format @param args
func (TestLogger) Panicw ¶
func (l TestLogger) Panicw(m string, keysAndValues ...interface{})
Panicw log print and panic @param m @param keysAndValues
func (TestLogger) Warn ¶
func (l TestLogger) Warn(args ...interface{})
Warn warn log print @param args
func (TestLogger) Warnf ¶
func (l TestLogger) Warnf(format string, args ...interface{})
Warnf warn log print @param format @param args
func (TestLogger) Warnw ¶
func (l TestLogger) Warnw(msg string, keysAndValues ...interface{})
Warnw warn log print @param msg @param keysAndValues