logger

package
v0.0.0-...-a4c77c0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxSize  = 100
	DefaultBackups  = 10
	DefaultMaxAge   = 30
	DefaultCompress = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level    string
	FilePath string
}

type Logger

type Logger interface {
	Debug(format string)
	Debugf(format string, args ...interface{})
	Info(format string)
	Infof(format string, args ...interface{})
	Warn(format string)
	Warnf(format string, args ...interface{})
	Error(format string)
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Panicf(format string, args ...interface{})
	WithFields(fields map[string]interface{}) Logger
}

func New

func New(cfg Config) Logger

Jump to

Keyboard shortcuts

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