logger

package
v0.0.0-...-5ed9cfe Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

func Debugf(msg string, args ...interface{})

func Error

func Error(msg string)

func Errorf

func Errorf(msg string, args ...interface{})

func Fatal

func Fatal(msg string)

func Fatalf

func Fatalf(msg string, args ...interface{})

func Info

func Info(msg string)

func Infof

func Infof(msg string, args ...interface{})

func LevelFromString

func LevelFromString(levelStr string) zapcore.Level

func Panic

func Panic(msg string)

func Panicf

func Panicf(msg string, args ...interface{})

func Warn

func Warn(msg string)

func Warnf

func Warnf(msg string, args ...interface{})

Types

type Config

type Config struct {
	OutPut       string
	FileName     string
	Level        string
	RotateSize   int
	RotateNum    int
	RotateAgeNum int
}

type Field

type Field = zap.Field

type Logger

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

func NewLogger

func NewLogger(l *Config) *Logger

Jump to

Keyboard shortcuts

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