make log output configurable

This commit is contained in:
Sarah Hoffmann
2025-09-10 20:11:46 +02:00
parent 177b16b89b
commit 3d0867ff16
6 changed files with 49 additions and 16 deletions

View File

@@ -208,6 +208,13 @@ NOMINATIM_OUTPUT_NAMES=name:XX,name,brand,official_name:XX,short_name:XX,officia
# To enable logging set this setting to the file to log to.
NOMINATIM_LOG_FILE=
# Set the output format of the query log.
# This is a string following the Python String Format syntax,
# see https://docs.python.org/3/library/string.html#formatstrings.
# For possible replacement values, see the full documentation at
# https://nominatim.org/release-docs/latest/customize/Settings/
NOMINATIM_LOG_FORMAT='[{start}] {total_time:.4f} {results_total} {endpoint} "{query_string}"'
# Echo raw SQL from SQLAlchemy statements.
# EXPERT: Works only in command line/library use.
NOMINATIM_DEBUG_SQL=no