logger

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PaymentXMLPatterns = sanitization.PaymentXMLPatterns

PaymentXMLPatterns are pre-configured XML patterns for payment payloads.

View Source
var RapidConnectXMLPatterns = sanitization.RapidConnectXMLPatterns

RapidConnectXMLPatterns are aliases for PaymentXMLPatterns.

Functions

func Logger

Logger returns the global structured logger singleton.

func SanitizeFieldValue

func SanitizeFieldValue(key string, value any) any

SanitizeFieldValue applies deterministic redaction rules to a field value.

func SanitizeJSON

func SanitizeJSON(jsonBytes []byte) string

SanitizeJSON returns a sanitized JSON string for safe logging.

func SanitizeLogString

func SanitizeLogString(value string) string

SanitizeLogString removes control characters that could enable log forging.

func SanitizeXML

func SanitizeXML(xmlString string, patterns []sanitization.XMLSanitizationPattern) string

SanitizeXML masks sensitive data in XML using the provided patterns.

func SetLogger

func SetLogger(next observability.StructuredLogger)

SetLogger replaces the global structured logger singleton.

Passing nil resets the logger to a no-op implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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