]> git.99rst.org Git - sgasser-llm-shield.git/commit
Add Postgres-compatible request logging (#127)
authorStefan Gasser <redacted>
Sun, 28 Jun 2026 21:16:12 +0000 (23:16 +0200)
committerGitHub <redacted>
Sun, 28 Jun 2026 21:16:12 +0000 (23:16 +0200)
commit961901c94b5fd3db03712f5481a2a3cc4f27a3f1
tree4cdf1d29ee84c367e2f7935372bf81338e10afc3
parentb63c48b64e366e356b7aac226b98b286bd77fd80
Add Postgres-compatible request logging (#127)

Abstract dashboard request logging behind Kysely so it runs on either
SQLite (default) or Postgres, selected via logging.driver. The schema and
migrations are shared across both backends, existing SQLite databases are
baselined and upgraded in place, and Logger reads/writes are async with
numeric coercion for Postgres aggregates. Includes unit, legacy-upgrade,
and live-Postgres integration tests plus updated config/docs.
13 files changed:
README.md
bun.lock
config.example.yaml
docs/configuration/logging.mdx
package.json
src/config.test.ts
src/config.ts
src/index.ts
src/logging/db.test.ts [new file with mode: 0644]
src/logging/db.ts [new file with mode: 0644]
src/logging/logger.test.ts
src/logging/logger.ts
src/routes/dashboard.tsx
git clone https://git.99rst.org/PROJECT