logger

package
v0.0.0-...-c3f8886 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EncoderConfig = zapcore.EncoderConfig{
	TimeKey:        "time",
	LevelKey:       "level",
	NameKey:        "logger",
	CallerKey:      "caller",
	FunctionKey:    zapcore.OmitKey,
	MessageKey:     "msg",
	StacktraceKey:  "stacktrace",
	LineEnding:     zapcore.DefaultLineEnding,
	EncodeLevel:    zapcore.CapitalColorLevelEncoder,
	EncodeTime:     zapcore.ISO8601TimeEncoder,
	EncodeDuration: zapcore.SecondsDurationEncoder,
	EncodeCaller:   zapcore.ShortCallerEncoder,
	EncodeName:     zapcore.FullNameEncoder,
}

Functions

func Console

func Console() *zapcore.Core

func Debug

func Debug(message string, fields ...zap.Field)

func Debugf

func Debugf(format string, v ...any)

func Error

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

func Errorf

func Errorf(format string, v ...any)

func GinDebug

func GinDebug(message string, fields ...zap.Field)

func GinError

func GinError(message string, fields ...zap.Field)

func GinInfo

func GinInfo(message string, fields ...zap.Field)

func GinLog

func GinLog()

func GinWarn

func GinWarn(message string, fields ...zap.Field)

func Info

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

func Infof

func Infof(format string, v ...any)

func Init

func Init()

func LocalFile

func LocalFile(filename string) *zapcore.Core

func Printf

func Printf(format string, v ...any)

func Println

func Println(v ...string)

func SystemLog

func SystemLog()

func Warn

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

func Warnf

func Warnf(format string, v ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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