Documentation
¶
Overview ¶
Package dlog is shortly for deduplicated logger.
Index ¶
Constants ¶
View Source
const ( Component = "component" Event = "event" Scope = "scope" )
Variables ¶
This section is empty.
Functions ¶
func StartDedupLogger ¶ added in v1.5.0
Types ¶
type Option ¶ added in v1.8.0
type Option func(*Sanitizer)
Option customizes Sanitizer.
func WithCollapseSpaces ¶ added in v1.8.0
WithCollapseSpaces collapses multiple whitespace into single spaces post-replacements.
func WithExtraRules ¶ added in v1.8.0
WithExtraRules appends extra rules after the defaults.
type Rule ¶ added in v1.8.0
type Rule struct {
// contains filtered or unexported fields
}
Rule is a single regex-based sanitization step.
type Sanitizer ¶ added in v1.8.0
type Sanitizer struct {
// contains filtered or unexported fields
}
Sanitizer applies an ordered set of sanitization rules.
func NewLogSanitizer ¶ added in v1.8.0
NewLogSanitizer builds a Sanitizer with a conservative, production-ready rule set. Order matters: some rules rely on previous placeholders.
Click to show internal directories.
Click to hide internal directories.