logging

package
v0.0.0-...-44c3be1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bool     = zap.Bool
	String   = zap.String
	Duration = zap.Duration
	Int      = zap.Int
	Int64    = zap.Int64
	Any      = zap.Any
)

Functions

This section is empty.

Types

type Field

type Field = zap.Field

type Level

type Level = zapcore.Level
const (
	InfoLevel  Level = zap.InfoLevel  // 0, default level
	WarnLevel  Level = zap.WarnLevel  // 1
	ErrorLevel Level = zap.ErrorLevel // 2
	FatalLevel Level = zap.FatalLevel // 5
	DebugLevel Level = zap.DebugLevel // -1
)

type Logger

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

func NewLogger

func NewLogger(config *config.Config) *Logger

func (*Logger) CleanUpFields

func (l *Logger) CleanUpFields()

func (*Logger) Debug

func (l *Logger) Debug(msg string, fields ...Field)

func (*Logger) Error

func (l *Logger) Error(msg string, fields ...Field)

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, fields ...Field)

func (*Logger) Info

func (l *Logger) Info(msg string, fields ...Field)

func (*Logger) UpdateFiels

func (l *Logger) UpdateFiels(fields ...Field)

func (*Logger) Warn

func (l *Logger) Warn(msg string, fields ...Field)

func (*Logger) With

func (l *Logger) With(fields ...Field) *Logger

Jump to

Keyboard shortcuts

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