oklog

package
v0.0.0-...-cdc279e Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 OKLog

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

OKLog TLog

func NewOKLog

func NewOKLog(prefix string) *OKLog

NewOKLog NewOKLog

func (*OKLog) Debug

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

Debug Debug

func (*OKLog) Error

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

Error Error

func (*OKLog) Info

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

Info Info

func (*OKLog) Warn

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

Warn Warn

type Options

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

func NewOptions

func NewOptions() *Options

Jump to

Keyboard shortcuts

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