Created
July 23, 2017 12:39
-
-
Save mahbodkh/3a0737089fbeb7beafefc2d4e27d8897 to your computer and use it in GitHub Desktop.
slf4j with log4j properties file :)
This file contains hidden or 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
| log4j.rootLogger=INFO, stdout | |
| # Direct log messages to stdout | |
| log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
| log4j.appender.stdout.Target=System.out | |
| log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | |
| #log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | |
| log4j.appender.stdout.layout.ConversionPattern=[%-5p] :: %d {%c} - (%F:%L) - %m%n | |
| ############################################# | |
| mvn file : | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| <version>1.7.5</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-log4j12</artifactId> | |
| <version>1.7.5</version> | |
| </dependency> | |
| ############################################# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.