logging

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogging

func ConfigureLogging(
	level zap.AtomicLevel,
	developmentLogging bool,
	initialFields map[string]interface{},
)

func NewLogger

func NewLogger(underlyingLogger *zap.Logger) *logger

func ParseLevel

func ParseLevel(levelString string) zap.AtomicLevel

Types

type Logger

type Logger interface {
	Named(s string) Logger
	With(fields ...zap.Field) Logger
	Debug(msg string, fields ...zap.Field)
	Info(msg string, fields ...zap.Field)
	Warn(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
	Panic(msg string, fields ...zap.Field)
	Fatal(msg string, fields ...zap.Field)
	Sync() error
}

func CreateLogger

func CreateLogger() (Logger, error)

func CreateTestLogger

func CreateTestLogger(tb testing.TB, discard bool) Logger

func MustGetLogger

func MustGetLogger() Logger

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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