logit

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug func(args ...interface{})
View Source
var Debugf func(template string, args ...interface{})
View Source
var Debugw func(msg string, keysAndValues ...interface{})

exported functions

View Source
var Error func(args ...interface{})
View Source
var Errorf func(template string, args ...interface{})
View Source
var Errorw func(msg string, keysAndValues ...interface{})
View Source
var Fatal func(args ...interface{})
View Source
var Fatalf func(template string, args ...interface{})
View Source
var Fatalw func(msg string, keysAndValues ...interface{})
View Source
var Info func(args ...interface{})
View Source
var Infof func(template string, args ...interface{})
View Source
var Infow func(msg string, keysAndValues ...interface{})
View Source
var LogLevels = map[string]zapcore.Level{
	"debug": zapcore.DebugLevel,
	"info":  zapcore.InfoLevel,
	"warn":  zapcore.WarnLevel,
	"error": zapcore.ErrorLevel,
}

Logger is the log printer

View Source
var Panic func(args ...interface{})
View Source
var Panicf func(template string, args ...interface{})
View Source
var Panicw func(msg string, keysAndValues ...interface{})
View Source
var Warn func(args ...interface{})
View Source
var Warnf func(template string, args ...interface{})
View Source
var Warnw func(msg string, keysAndValues ...interface{})

Functions

func InitLogs

func InitLogs(cfg *Config) (err error)

InitLogs init the logging system.

Types

type Config

type Config struct {
	PrintJSON     bool
	PrintStdout   bool
	PrintCaller   bool
	LogLevel      string
	LogOutputDir  string
	BuiltinFields map[string]string
}

Jump to

Keyboard shortcuts

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