Skip to content

Commit

Permalink
Minimal log4j, output ERRORs and above.
Browse files Browse the repository at this point in the history
  • Loading branch information
wushujames committed Apr 7, 2017
1 parent 6f735da commit 2684896
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions ConsumerGroupLag/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ dependencies {
compile(group: 'org.apache.kafka', name: 'kafka_2.11', version: "0.10.2.0")
compile(group: 'commons-cli', name: 'commons-cli', version: "1.3.1");
compile(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "2.6.3")
compile(group: 'log4j', name: 'log4j', version: "1.2.17")
}
8 changes: 8 additions & 0 deletions ConsumerGroupLag/src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Root logger option
log4j.rootLogger=ERROR, stdout

# Redirect log messages to console
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

0 comments on commit 2684896

Please sign in to comment.