Skip to content

logging

By default, openrouteservice logs status and error messages both to the console and a log file. No access logs are kept for requests.

Logging can be configured using spring properties in the logging. space, for a full list see the spring docs.

The most important ones are:

keytypedescriptiondefault value
logging.file.namestringPath/filename of the log file./logs/ors.log
logging.pattern.consolestringPattern for log messages to console%d{YYYY-MM-dd HH:mm:ss} %highlight{%-7p} %style{%50t}{Cyan} %style{[ %-40.40c{1.} ]}{Bright Cyan} %m%n
logging.pattern.filestringPattern for log messages to log file%d{YYYY-MM-dd HH:mm:ss} %-7p [ %-40.40c{1.} ] %m%n
logging.level.rootstringDefault log levelWARN
logging.level.org.heigitstringLog level for message from the org.heigit namespaceINFO