logger

package
v0.1.83 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddScopedLogger

func AddScopedLogger(builder *di.Builder)

AddScopedLogger adds service to the DI container

func AddSingletonLogger

func AddSingletonLogger(builder *di.Builder)

AddSingletonLogger adds service to the DI container

Types

type ILogger

type ILogger interface {
	Error() *zerolog.Event
	Debug() *zerolog.Event
	Fatal() *zerolog.Event
	Info() *zerolog.Event
	Warn() *zerolog.Event
	Trace() *zerolog.Event

	GetLogger() *zerolog.Logger

	ErrorL(logger *zerolog.Logger) *zerolog.Event
	DebugL(logger *zerolog.Logger) *zerolog.Event
	FatalL(logger *zerolog.Logger) *zerolog.Event
	InfoL(logger *zerolog.Logger) *zerolog.Event
	WarnL(logger *zerolog.Logger) *zerolog.Event
	TraceL(logger *zerolog.Logger) *zerolog.Event
}

func GetScopedLoggerFromContainer

func GetScopedLoggerFromContainer(ctn di.Container) ILogger

GetScopedLoggerFromContainer from the Container

func GetSingletonLoggerFromContainer

func GetSingletonLoggerFromContainer(ctn di.Container) ILogger

Jump to

Keyboard shortcuts

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