log

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(version string) (*slog.Logger, func(), error)

func SanitizeLogKey added in v1.4.0

func SanitizeLogKey(key string) string

SanitizeLogKey removes control characters from log keys.

func SanitizeLogValue added in v1.4.0

func SanitizeLogValue(s string) string

SanitizeLogValue removes control characters and potential log injection patterns from user-provided values before logging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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