logging

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceLogger = "service.logger"
)

Variables

This section is empty.

Functions

func CloseEmergencyLogger

func CloseEmergencyLogger()

func EmergencyLogger

func EmergencyLogger() loggingcontract.Logger

func EnsureLogger

func EnsureLogger(logger loggingcontract.Logger) loggingcontract.Logger

func GenerateProcessId

func GenerateProcessId() string

func IsValidLevel

func IsValidLevel(value loggingcontract.Level) bool

func LogError

func LogError(logger loggingcontract.Logger, err error)

func LogOnRecover

func LogOnRecover(
	logger loggingcontract.Logger,
	panicAgain bool,
)

func LogOnRecoverAndExit

func LogOnRecoverAndExit(
	logger loggingcontract.Logger,
	recovered any,
	exitCode int,
)

func LoggerFromContainer

func LoggerFromContainer(serviceContainer containercontract.Container) (loggingcontract.Logger, error)

func LoggerFromRuntime

func LoggerFromRuntime(runtimeInstance runtimecontract.Runtime) loggingcontract.Logger

func LoggerMustFromContainer

func LoggerMustFromContainer(serviceContainer containercontract.Container) loggingcontract.Logger

func LoggerMustFromRuntime

func LoggerMustFromRuntime(runtimeInstance runtimecontract.Runtime) loggingcontract.Logger

func NewDefaultLogger

func NewDefaultLogger() loggingcontract.Logger

func NewJsonLogger

func NewJsonLogger(output io.Writer, minLevel loggingcontract.Level) loggingcontract.Logger

func NewNopLogger

func NewNopLogger() loggingcontract.Logger

func NewRequestLogger

func NewRequestLogger(logger loggingcontract.Logger, requestId string, contextKey string) loggingcontract.Logger

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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