-
Notifications
You must be signed in to change notification settings - Fork 501
Log customization
dbeaver-devops edited this page Oct 1, 2025
·
4 revisions
- Default logging configuration
- Customize logging level and pattern
- Logging pattern
- Customize logging in Preferences
CloudBeaver uses logback.xml to configure server logging. This file controls log level and log message pattern.
For details on viewing logs directly in the CloudBeaver, see Log Viewer.
CloudBeaver's default logback.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>
%d{dd-MM-yyyy HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n
</Pattern>
</layout>
</appender>
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
<logger name="org.jkiss" level="DEBUG"/>
<logger name="com.dbeaver" level="DEBUG"/>
<logger name="io.cloudbeaver" level="DEBUG"/>
<logger name="org.apache.kafka" level="WARN"/>
<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>Customize CloudBeaver logging by creating a custom logback.xml file:
- Create and save your custom
logback.xmlfile on your server. - Mount your custom directory to the container's
/opt/cloudbeaver/conf/customfolder. - Restart CloudBeaver to apply your new logging configuration.
For mounting details, see Docker volumes documentation.
Set the logging level in the <root> element's level attribute:
-
ERROR: logs errors only. -
WARN: logs warnings and errors. -
INFO: standard logs (recommended for everyday use). -
DEBUG: detailed debugging info. -
TRACE: maximum verbosity for troubleshooting.
Example:
<root level="WARN">
<appender-ref ref="CONSOLE"/>
</root>To enable detailed logging of GraphQL queries, turn it on in Global preferences.
Define custom log message pattern in the <Pattern> element.
Example (time only):
<Pattern>
%d{HH:mm:ss} [%t] %-5level - %msg%n
</Pattern>In addition to editing logback.xml, you can configure logging directly in the CloudBeaver preferences. These
options let you:
- save all API requests in the Query Manager database
- choose how many days to keep logs
- log GraphQL requests to console
For details, see Preferences - Logger settings.
- Getting started
- Create connection
- Connection network options
- Supported databases
-
Drivers management
- Database authentication methods
- Database navigator
- Properties editor
- Data editor
- SQL editor
-
Entity relation diagrams
- Cloud services
-
AI Smart assistance
- Data transfer
- General user guide
- Administration
- Server configuration
-
Server security and access configuration
- Authentication methods
- Access management
- Proxy configuration
-
Secret management
- Logs
-
Query manager
- Workspace location
- Command line parameters
-
Session manager
- Deployment options
- CloudBeaver Editions
- FAQ
- Development