Skip to content

feat: add queryLog configuration support - #21

Open
rikdc wants to merge 1 commit into
ngine-io:mainfrom
rikdc:feature/query-log-support
Open

feat: add queryLog configuration support#21
rikdc wants to merge 1 commit into
ngine-io:mainfrom
rikdc:feature/query-log-support

Conversation

@rikdc

@rikdc rikdc commented Mar 15, 2026

Copy link
Copy Markdown

Add variables and template block to configure Blocky's query logging feature, supporting all backends (postgresql, mysql, timescale, csv, csv-client, console) with all available options.

New defaults:

  • blocky__query_log_type: enable logging by setting to a supported type
  • blocky__query_log_target: DB connection string or CSV directory path
  • blocky__query_log_log_retention_days: auto-delete logs older than N days
  • blocky__query_log_creation_attempts: retries on startup
  • blocky__query_log_creation_cooldown: delay between retries
  • blocky__query_log_fields: subset of fields to log (empty = all)
  • blocky__query_log_flush_interval: bulk write interval for DB backends

The queryLog section is only emitted when blocky__query_log_type is set, making this fully backwards-compatible with existing deployments.

Add variables and template block to configure Blocky's query logging
feature, supporting all backends (postgresql, mysql, timescale, csv,
csv-client, console) with all available options.

New defaults:
- blocky__query_log_type: enable logging by setting to a supported type
- blocky__query_log_target: DB connection string or CSV directory path
- blocky__query_log_log_retention_days: auto-delete logs older than N days
- blocky__query_log_creation_attempts: retries on startup
- blocky__query_log_creation_cooldown: delay between retries
- blocky__query_log_fields: subset of fields to log (empty = all)
- blocky__query_log_flush_interval: bulk write interval for DB backends

The queryLog section is only emitted when blocky__query_log_type is set,
making this fully backwards-compatible with existing deployments.
@rikdc
rikdc marked this pull request as draft March 15, 2026 22:02
@rikdc
rikdc marked this pull request as ready for review March 16, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant