Documentation
¶
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 is an adapter for pgx tracelog to slog
type LoggerOpt ¶
type LoggerOpt func(*Logger)
LoggerOpt sets options for the logger
func WithIgnoreErrors ¶
WithIgnoreErrors sets an option to ignore certain errors based on a matcher function
func WithRemapErrorLevel ¶ added in v0.4.0
WithRemapErrorLevel sets a mapper function to conditionally remap log levels based on error inspection
Click to show internal directories.
Click to hide internal directories.