Documentation
¶
Overview ¶
Package slog provides the official log/slog integration for postgres-sqlguard validation outcomes.
Logger emits the stable message "sqlguard validation" with only mode, outcome, and rule_id attributes. It invokes the configured handler with a clean background context so SQL data and caller-context values do not cross the integration boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger emits bounded postgres-sqlguard validation records through a configured log/slog handler.
func (*Logger) LogValidation ¶
func (l *Logger) LogValidation(event sqlguard.ValidationEvent) error
LogValidation logs one bounded validation event.
Click to show internal directories.
Click to hide internal directories.