log

package
v0.0.0-...-8964234 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

func Debugw

func Debugw(format string, v ...interface{})

func Err

func Err(format string, v ...interface{}) error

func Errw

func Errw(format string, v ...interface{})

func Info

func Info(format string, v ...interface{})

func Infow

func Infow(format string, v ...interface{})

func Init

func Init(path string, level zapcore.Level) error

func SetDefault

func SetDefault(l *Logger)

func Sync

func Sync()

func Warn

func Warn(format string, v ...interface{})

func Warnw

func Warnw(format string, v ...interface{})

Types

type Logger

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

func GetDefault

func GetDefault() *Logger

func NewLogger

func NewLogger(path string, level zapcore.Level) (*Logger, error)

func NewLoggerWithEncoderConfig

func NewLoggerWithEncoderConfig(path string, level zapcore.Level, config *zapcore.EncoderConfig) (*Logger, error)

func Stdout

func Stdout() *Logger

func (*Logger) Debug

func (log *Logger) Debug(format string, v ...interface{})

func (*Logger) Debugw

func (log *Logger) Debugw(format string, v ...interface{})

func (*Logger) EnableDailyFile

func (log *Logger) EnableDailyFile()

func (*Logger) Err

func (log *Logger) Err(format string, v ...interface{})

func (*Logger) Errw

func (log *Logger) Errw(format string, v ...interface{})

func (*Logger) GetUnderlyingLogger

func (log *Logger) GetUnderlyingLogger() *zap.Logger

func (*Logger) Info

func (log *Logger) Info(format string, v ...interface{})

func (*Logger) Infow

func (log *Logger) Infow(format string, v ...interface{})

func (*Logger) Print

func (log *Logger) Print(v ...interface{})

func (*Logger) Printf

func (log *Logger) Printf(format string, v ...interface{})

func (*Logger) Warn

func (log *Logger) Warn(format string, v ...interface{})

func (*Logger) Warnw

func (log *Logger) Warnw(format string, v ...interface{})

Jump to

Keyboard shortcuts

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