lklogger

package module
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

README

lklogger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleCallerEncoder

func ConsoleCallerEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder)

func ConsoleLevelEncoder

func ConsoleLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder)

func ConsoleTimeEncode

func ConsoleTimeEncode(t time.Time, enc zapcore.PrimitiveArrayEncoder)

func FileCallerEncoder

func FileCallerEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder)

func FileLevelEncoder

func FileLevelEncoder(level zapcore.Level, enc zapcore.PrimitiveArrayEncoder)

func FileTimeEncode

func FileTimeEncode(t time.Time, enc zapcore.PrimitiveArrayEncoder)

func GetConsoleEncoder

func GetConsoleEncoder() zapcore.EncoderConfig

func GetFileEncoder

func GetFileEncoder() zapcore.EncoderConfig

Types

type LkLogger added in v1.0.5

type LkLogger struct {
	zap.Logger
}

func NewLKLogger

func NewLKLogger(callerPath bool, StackTrace bool, skipArgs ...int) *LkLogger

func NewLKLoggerAll added in v1.0.2

func NewLKLoggerAll(callerPath bool, StackTrace bool, filePath string, skipArgs ...int) *LkLogger

func (*LkLogger) Debug added in v1.0.5

func (l *LkLogger) Debug(s string)

func (*LkLogger) DebugSf added in v1.0.5

func (l *LkLogger) DebugSf(format string, v ...interface{})

func (*LkLogger) Error added in v1.0.5

func (l *LkLogger) Error(s string)

func (*LkLogger) ErrorSf added in v1.0.5

func (l *LkLogger) ErrorSf(format string, v ...interface{})

func (*LkLogger) Info added in v1.0.5

func (l *LkLogger) Info(s string)

func (*LkLogger) InfoSf added in v1.0.5

func (l *LkLogger) InfoSf(format string, v ...interface{})

func (*LkLogger) Warn added in v1.0.5

func (l *LkLogger) Warn(s string)

func (*LkLogger) WarnSf added in v1.0.5

func (l *LkLogger) WarnSf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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