Documentation
¶
Overview ¶
Package logging provides structured logging with PII redaction for gpd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
Field represents a log field.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides structured logging with PII redaction.
type PIIRedactor ¶
type PIIRedactor struct {
// contains filtered or unexported fields
}
PIIRedactor handles PII redaction in log output.
func (*PIIRedactor) IsAllowedField ¶
func (r *PIIRedactor) IsAllowedField(key string) bool
IsAllowedField checks if a field is safe to log.
func (*PIIRedactor) IsSensitiveField ¶
func (r *PIIRedactor) IsSensitiveField(key string) bool
IsSensitiveField checks if a field is sensitive.
func (*PIIRedactor) Redact ¶
func (r *PIIRedactor) Redact(key string, value interface{}) interface{}
Redact redacts sensitive data from a value.
func (*PIIRedactor) RedactMap ¶
func (r *PIIRedactor) RedactMap(data map[string]interface{}) map[string]interface{}
RedactMap redacts all sensitive fields in a map.
Click to show internal directories.
Click to hide internal directories.