Skip to content

Logging

Unity Catalog uses Log4j 2 logging framework (through the Simple Logging Facade for Java (SLF4J) with Apache Log4j SLF4J 2.0 Binding).

There are two logging configuration files in etc/conf:

Component Configuration File
Unity Catalog CLI etc/conf/cli.log4j2.properties
Unity Catalog Server etc/conf/server.log4j2.properties

etc/conf/server.log4j2.properties

Unity Catalog Server uses etc/conf/server.log4j2.properties logging configuration file.

The following sample server.log4j2.properties sets up logging to standard output (console):

status = warn

appender.console.name = stdout
appender.console.type = Console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{YYYY-MM-dd HH:mm:ss} [%t] %-5p %c:%L - %m%n
appender.console.target = SYSTEM_OUT

rootLogger.level = info
rootLogger.appenderRefs = console
rootLogger.appenderRef.console.ref = stdout

Automatic Configuration

Automatic Configuration