Log
QuestDB log provides database information. This page presents log level, their details, and where to configure and find the log.
Log location#
QuestDB open source#
QuestDB creates the following file structure in its root_directory:
Log files are stored in the log folder:
Log levels#
QuestDB log provides the following types of log information:
| Type | Marker | Details | Default |
|---|---|---|---|
| Advisory | A | Startup information such as hosts, listening ports, etc. Rarely used after startup | Enabled |
| Critical | C | Internal database errors. Serious issues. Things that should not happen in general operation. | Enabled |
| Error | E | An error, usually (but not always) caused by a user action such as inserting a symbol into a timestamp column. For context on how this error happened, check for Info-level messages logged before the error. | Enabled |
| Info | I | Logs for activities. Info-level messages often provide context for an error if one is logged later. | Enabled |
| Debug | D | Finer details on what is happening. Useful to debug issues. | Disabled |
For more information, see the source code on GH.
Log examples#
The below is some examples of log messages by type.
Advisory:
Critical:
Error:
Info:
Debug:
Log configuration#
QuestDB logging can be configured globally to DEBUG via either providing
the java option -Debug or setting the environment variable QDB_DEBUG=true.