logging

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const LabelComponent string = "component"

LabelComponent - Label for component logs

View Source
const LabelCorrelation = "correlationId"

LabelCorrelation - Label for multiline error logs

View Source
const LabelDecision string = "decision"

LabelDecision - Label for decision result

View Source
const LabelDuration string = "duration"

LabelDuration - Label for decision duration

View Source
const LabelError string = "error"

LabelError - Label for all errors

View Source
const LabelMethod string = "method"

LabelMethod - Label for decision method

View Source
const LabelPath string = "path"

LabelPath - Label for decision path

View Source
const LabelReason string = "reason"

LabelReason - Label for decision reason

Variables

This section is empty.

Functions

func LogAccessDecision

func LogAccessDecision(accessDecisionLogLevel, decision, component string, additionalFields log.Fields)

LogAccessDecision formats the decision and logs it

func LogForComponent

func LogForComponent(component string) *log.Entry

LogForComponent creates a new log entry containing the component label

func LogWithCorrelationID added in v0.2.0

func LogWithCorrelationID(correlation uuid.UUID) *log.Entry

LogWithCorrelationID creates a new log entry which contains the correlation ID Useful, if multiple lines should be logged, and it should be clear, that they belong together

Types

This section is empty.

Jump to

Keyboard shortcuts

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