log

package
v0.0.0-...-bfc6946 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 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)

func Error

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

func Info

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

func Warn

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

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)
}

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
}

func NewTLog

func NewTLog(prefix string) *TLog

func (*TLog) Debug

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

func (*TLog) Error

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

func (*TLog) Info

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

func (*TLog) Warn

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

Jump to

Keyboard shortcuts

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