Goal
Allow plugging a structured logger (zerolog, zap, slog) into the database's slow-query / query log so application logging stays consistent. Currently the logger is a plain function.
Acceptance criteria
- Logger interface accepting structured key/value pairs
- Default
logger.Logger (stdlib log) still works
- Adapter examples for
slog and at least one third-party logger
Goal
Allow plugging a structured logger (zerolog, zap, slog) into the database's slow-query / query log so application logging stays consistent. Currently the logger is a plain function.
Acceptance criteria
logger.Logger(stdlib log) still worksslogand at least one third-party logger