Skip to content

Instantly share code, notes, and snippets.

@IT-Berater
Created May 14, 2016 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IT-Berater/97a7f337709ed6f62853f9b8bf4e9639 to your computer and use it in GitHub Desktop.
Save IT-Berater/97a7f337709ed6f62853f9b8bf4e9639 to your computer and use it in GitHub Desktop.
Default log4j.xml Beispiel zum loggen
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
</layout>
</appender>
<logger name="de.wenzlaff">
<level value="DEBUG"/>
</logger>
<root>
<priority value ="DEBUG" />
<appender-ref ref="console" />
</root>
</log4j:configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment