Tutorial by Examples

Configuration Log4j configuration file can be in any of these formats: JSON YAML properties (text file) XML Configuration discovery Log4j will inspect the log4j.configurationFile system property and, if set, will attempt to load the configuration. If no system property is set log4j wil...
XML Example The below configuration configures two appenders (log output). The first logs to standard system output (console) and the other logs to file. In this example, the location of the file can be set statically in configuration (appender file) or dynamically via maven filtering feature (<...

Page 1 of 1