logger

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG   = 0
	INFO    = 1
	WARNING = 2
	ERROR   = 3
	FATAL   = 4
)

Variables

This section is empty.

Functions

func D

func D(ctx context.Context, message string, fields ...zapcore.Field)

func E

func E(ctx context.Context, err error, message string, fields ...zapcore.Field)

func Field

func Field(key string, value interface{}) zapcore.Field

func Get

func Get() *zap.Logger

func I

func I(ctx context.Context, message string, fields ...zapcore.Field)

func Init

func Init(mode int, env environment.Environment)

func Sync

func Sync()

func W

func W(ctx context.Context, message string, fields ...zapcore.Field)

Types

type ContextKey

type ContextKey string

type LoggingFunc

type LoggingFunc func(message string, fields ...zapcore.Field)

Jump to

Keyboard shortcuts

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