Last active
November 18, 2016 17:46
-
-
Save fbarrios/977efa036a8b29ca41effa69539da1f6 to your computer and use it in GitHub Desktop.
Maven Log4j config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-api</artifactId> | |
<version>2.7</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-core</artifactId> | |
<version>2.7</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-slf4j-impl</artifactId> | |
<version>2.7</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-web</artifactId> | |
<version>2.7</version> | |
<scope>runtime</scope> | |
</dependency> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration> | |
<Appenders> | |
<Console name="STDOUT" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d %-5p (%F:%L) - %m%n"/> | |
</Console> | |
</Appenders> | |
<Loggers> | |
<Logger name="org.apache.log4j.xml" level="info"/> | |
<Root level="debug"> | |
<AppenderRef ref="STDOUT"/> | |
</Root> | |
</Loggers> | |
</Configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment