wklog

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(opts *Options)

func Debug

func Debug(msg string, fields ...zap.Field)

Debug Debug

func Error

func Error(msg string, fields ...zap.Field)

Error Error

func Info

func Info(msg string, fields ...zap.Field)

Info Info

func Warn

func Warn(msg string, fields ...zap.Field)

Warn Warn

Types

type Log

type Log interface {
	Info(msg string, fields ...zap.Field)
	Debug(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
	Warn(msg string, fields ...zap.Field)
}

Log Log

type Options

type Options struct {
	Level   zapcore.Level
	LogDir  string
	LineNum bool
}

func NewOptions

func NewOptions() *Options

type WKLog

type WKLog struct {
	// contains filtered or unexported fields
}

WKLog TLog

func NewWKLog

func NewWKLog(prefix string) *WKLog

NewWKLog NewWKLog

func (*WKLog) Debug

func (t *WKLog) Debug(msg string, fields ...zap.Field)

Debug Debug

func (*WKLog) Error

func (t *WKLog) Error(msg string, fields ...zap.Field)

Error Error

func (*WKLog) Info

func (t *WKLog) Info(msg string, fields ...zap.Field)

Info Info

func (*WKLog) Warn

func (t *WKLog) Warn(msg string, fields ...zap.Field)

Warn Warn

Jump to

Keyboard shortcuts

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