Enabling debug logging


While developing a software application, having a simple way to enable logging for debugging purposes is often required. In this short article, we explain how to set up and activate the built-in SLF4J (Simple Logging Facade for Java) module in the Radix Java client library.

Enabling logging

To enable the SLF4J logging module, you need to create a simplelogger.properties file in the root of your project's resources bundle. Typically this would be in the following path:


In the new simplelogger.properties file you need to add at least one line with the desired log level, e.g.:

# My SLF4J configuration
# Must be one of ("trace", "debug", "info", "warn", or "error")

Additional settings

For quick reference, here's a table with additional settings and their possible values:




trace, debug, info, warn, error


true, false


string (Simple Date Format)


true, false


true, false


true, false

Note: please refer to the SLF4J documentation for further options and detailed information.

Sample simplelogger.properties

For your convinience, we include a sample simplelogger.properties file with extensive debug logging enabled:

# SLF4J's SimpleLogger configuration file
# Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err.
# Default logging detail level for all instances of SimpleLogger.
# Must be one of ("trace", "debug", "info", "warn", or "error").
# If not specified, defaults to "info".
# Set to true if you want the current date and time to be included in output messages.
# Default is false, and will output the number of milliseconds elapsed since startup.
# The date and time format to be used in the output messages.
# The pattern describing the date and time format is the same that is used in java.text.SimpleDateFormat.
# If the format is not specified or is invalid, the default format is used.
# The default format is yyyy-MM-dd HH:mm:ss:SSS Z.
org.slf4j.simpleLogger.dateTimeFormat=yyyyMMdd HH:mm:ss.SSS Z
# Set to true if you want to output the current thread name.
# Defaults to true.
# Set to true if you want the Logger instance name to be included in output messages.
# Defaults to true.
# Set to true if you want the last component of the name to be included in output messages.
# Defaults to false.