log

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddField

func AddField(key, val string)

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 Debug

func Debug(args ...interface{})

func Debugf

func Debugf(format string, args ...interface{})

func Error

func Error(args ...interface{})

func ErrorE

func ErrorE(err error, message string)

func Errorf

func Errorf(format string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func FatalE

func FatalE(err error, message string)

log with error

func Fatalf

func Fatalf(format string, args ...interface{})

func GetLogger

func GetLogger(w zapcore.WriteSyncer) *zap.SugaredLogger

func Info

func Info(args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Init

func Init(level zapcore.Level, dir, fileName string) error

func InitEs

func InitEs(host string)

func Log

func Log(args ...interface{})

func LogDebugf

func LogDebugf(format string, args ...interface{})

func LogE

func LogE(err error)

func LogStack

func LogStack()

func Logf

func Logf(format string, args ...interface{})

func PError

func PError(info string)

func PErrorf

func PErrorf(format string, args ...interface{})

func PInfo

func PInfo(info string)

func PInfof

func PInfof(format string, args ...interface{})

func PWarn

func PWarn(info string)

func PWarnf

func PWarnf(format string, args ...interface{})

func RedirectionDefaultLogger

func RedirectionDefaultLogger(w zapcore.WriteSyncer)

func TLogf

func TLogf(tag, format string, args ...interface{})

func TestLogger

func TestLogger(tag string) *testLogger

func Trace

func Trace(args ...interface{})

Trace TRACE logs do not print to stdout

func Tracef

func Tracef(format string, args ...interface{})

func UseBulk

func UseBulk(enable bool)

UseBulk Used by daemon

func Warn

func Warn(args ...interface{})

func WarnE

func WarnE(err error, message string)

func Warnf

func Warnf(format string, args ...interface{})

func WrapAndLogE

func WrapAndLogE(err error)

func WriteToEsWithField

func WriteToEsWithField(field map[string]interface{}, format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL