logger

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 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 added in v0.1.7

func AddScopedLogger(builder *di.Builder)

AddScopedLogger adds service to the DI container

func AddSingletonLogger added in v0.1.7

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
}

func GetScopedLoggerFromContainer added in v0.1.7

func GetScopedLoggerFromContainer(ctn di.Container) ILogger

GetScopedLoggerFromContainer from the Container

func GetSingletonLoggerFromContainer added in v0.1.7

func GetSingletonLoggerFromContainer(ctn di.Container) ILogger

Jump to

Keyboard shortcuts

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