-
Notifications
You must be signed in to change notification settings - Fork 504
Log customization
dbeaver-devops edited this page May 29, 2025
·
4 revisions
- Overview
- Default logging configuration
- Customize logging level and pattern
- Logging pattern
- Enable detailed logs
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>To enable detailed logging:
- As administrator, go to Settings -> Administration -> Global preferences.
- Go to Server configuration > Logger.
- Turn on Enable detailed logging.
- Save your changes.
Detailed logs include:
- Session ID and User ID.
- User creation, modification, and logout.
- Resource Manager activity.
- S3/cloud storage actions.
- All GraphQL and administration API parameters.
Passwords, private keys, credentials, and tokens are never logged.
- 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