logging

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReqId                = "RequestId"
	OpenTelemetryTraceId = "OpenTelemetryTraceId"
	DEBUG                = "DEBUG"
	INFO                 = "INFO"
	WARN                 = "WARN"
	ERROR                = "ERROR"
	UNKNOWN              = "UNKNOWN" // Indicate other environment
)

Variables

This section is empty.

Functions

func New

func New(level string, dest io.Writer) logger.Logger

Init creates an ISLogger instance, a structured logger using the JSON Handler. Creating this logger sets this as the default logger, so any logging after this which goes through the standard logging package will also produce JSON structured logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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