Documentation ¶
Index ¶
- func AddField(key, val string)
- func AllTestLogsLocations() []string
- func CustomDurationEncoder(t time.Duration, enc zapcore.PrimitiveArrayEncoder)
- func CustomLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
- func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func ErrorE(err error, message string)
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func FatalE(err error, message string)
- func Fatalf(format string, args ...interface{})
- func GetLogger(w zapcore.WriteSyncer) *zap.SugaredLogger
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init(level zapcore.Level, dir, fileName string) error
- func InitEs(host string)
- func Log(args ...interface{})
- func LogDebugf(format string, args ...interface{})
- func LogE(err error)
- func LogStack()
- func Logf(format string, args ...interface{})
- func PError(info string)
- func PErrorf(format string, args ...interface{})
- func PInfo(info string)
- func PInfof(format string, args ...interface{})
- func PWarn(info string)
- func PWarnf(format string, args ...interface{})
- func RedirectionDefaultLogger(w zapcore.WriteSyncer)
- func TLogf(tag, format string, args ...interface{})
- func TestLogger(tag string) *testLogger
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func UseBulk(enable bool)
- func Warn(args ...interface{})
- func WarnE(err error, message string)
- func Warnf(format string, args ...interface{})
- func WrapAndLogE(err error)
- func WriteToEsWithField(field map[string]interface{}, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllTestLogsLocations ¶
func AllTestLogsLocations() []string
func CustomDurationEncoder ¶
func CustomDurationEncoder(t time.Duration, enc zapcore.PrimitiveArrayEncoder)
func CustomLevelEncoder ¶
func CustomLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
func CustomTimeEncoder ¶
func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
func GetLogger ¶
func GetLogger(w zapcore.WriteSyncer) *zap.SugaredLogger
func RedirectionDefaultLogger ¶
func RedirectionDefaultLogger(w zapcore.WriteSyncer)
func TestLogger ¶
func TestLogger(tag string) *testLogger
func WrapAndLogE ¶
func WrapAndLogE(err error)
func WriteToEsWithField ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.