log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 TLog

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

LIMLog TLog

func NewTLog

func NewTLog(prefix string) *TLog

NewLIMLog NewLIMLog

func (*TLog) Debug

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

Debug Debug

func (*TLog) Error

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

Error Error

func (*TLog) Info

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

Info Info

func (*TLog) Warn

func (t *TLog) 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