-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from ngageoint/test-logging-cleanup
Ensure Log4j is used for testing
- Loading branch information
Showing
9 changed files
with
105 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# A1 is set to be a FileAppender. | ||
log4j.appender.A1=org.apache.log4j.ConsoleAppender | ||
#log4j.appender.A1=org.apache.log4j.FileAppender | ||
log4j.appender.A1=org.apache.log4j.FileAppender | ||
log4j.appender.A1.File=target/test.log | ||
log4j.appender.A1.Threshold=TRACE | ||
|
||
# A1 uses PatternLayout. | ||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n | ||
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n | ||
|
||
# A2 is a ConsoleAppender. | ||
log4j.appender.A2=org.apache.log4j.ConsoleAppender | ||
log4j.appender.A2.Threshold=WARN | ||
# A2 uses PatternLayout. | ||
log4j.appender.A2.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A2.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n | ||
|
||
# Set root logger level to the designated level and its only appender to A1. | ||
log4j.rootLogger=INFO, A1 | ||
# Set both appenders (A1 and A2) on the root logger. | ||
log4j.rootLogger=INFO, A1, A2 | ||
#log4j.rootLogger=INFO, A1 | ||
|
||
log4j.logger.org.apache.cassandra=INFO | ||
log4j.logger.org.apache.hadoop=INFO | ||
log4j.logger.org.apache.zookeeper=INFO |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# A1 is set to be a FileAppender. | ||
#log4j.appender.A1=org.apache.log4j.ConsoleAppender | ||
# A1 is a FileAppender. | ||
log4j.appender.A1=org.apache.log4j.FileAppender | ||
log4j.appender.A1.File=target/test.log | ||
|
||
log4j.appender.A1.Threshold=TRACE | ||
# A1 uses PatternLayout. | ||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n | ||
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n | ||
|
||
# A2 is a ConsoleAppender. | ||
log4j.appender.A2=org.apache.log4j.ConsoleAppender | ||
log4j.appender.A2.Threshold=WARN | ||
# A2 uses PatternLayout. | ||
log4j.appender.A2.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A2.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n | ||
|
||
# Set root logger level to the designated level and its only appender to A1. | ||
log4j.rootLogger=INFO, A1 | ||
# Set both appenders (A1 and A2) on the root logger. | ||
log4j.rootLogger=INFO, A1, A2 | ||
#log4j.rootLogger=INFO, A1 | ||
|
||
log4j.logger.org.apache.cassandra=INFO | ||
log4j.logger.org.apache.hadoop=INFO | ||
log4j.logger.org.apache.zookeeper=INFO |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# A1 is set to be a FileAppender. | ||
#log4j.appender.A1=org.apache.log4j.ConsoleAppender | ||
log4j.appender.A1=org.apache.log4j.FileAppender | ||
log4j.appender.A1.File=target/test.log | ||
|
||
log4j.appender.A1.Threshold=TRACE | ||
# A1 uses PatternLayout. | ||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n | ||
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n | ||
|
||
# A2 is a ConsoleAppender. | ||
log4j.appender.A2=org.apache.log4j.ConsoleAppender | ||
log4j.appender.A2.Threshold=WARN | ||
# A2 uses PatternLayout. | ||
log4j.appender.A2.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.A2.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c{2}: %m%n | ||
|
||
# Set root logger level to the designated level and its only appender to A1. | ||
log4j.rootLogger=INFO, A1 | ||
# Set both appenders (A1 and A2) on the root logger. | ||
log4j.rootLogger=INFO, A1, A2 | ||
#log4j.rootLogger=INFO, A1 | ||
|
||
log4j.logger.org.apache.cassandra=INFO | ||
log4j.logger.org.apache.hadoop=INFO | ||
log4j.logger.org.apache.zookeeper=INFO |
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