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 ¶
LogForComponent creates a new log entry containing the component label
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.