log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 3 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStdoutCore

func NewStdoutCore() zapcore.Core

standard output.

Types

type Level

type Level = zapcore.Level
const (
	DebugLevel Level = zapcore.DebugLevel
	InfoLevel  Level = zapcore.InfoLevel
	WarnLevel  Level = zapcore.WarnLevel
	ErrorLevel Level = zapcore.ErrorLevel
	PanicLevel Level = zapcore.PanicLevel
	FatalLevel Level = zapcore.FatalLevel
)

type Logger

type Logger interface {
	Debug(messages ...interface{})
	Info(messages ...interface{})
	Warning(messages ...interface{})
	Error(messages ...interface{})
	Fatal(messages ...interface{})
	Panic(messages ...interface{})
	Infof(template string, args ...interface{})
}

func NewCustomLogger

func NewCustomLogger(cores ...zapcore.Core) Logger

func NewLogger

func NewLogger() Logger

Jump to

Keyboard shortcuts

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