forked from yasserg/crawler4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
less verbose console output during unit tests, and log to a file
- Loading branch information
1 parent
8ee9172
commit d1dd1da
Showing
1 changed file
with
8 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE XML> | ||
<configuration> | ||
|
||
<property name="LOG_HOME" value="target/test-logs" /> | ||
<property name="LOG_FILE_NAME" value="/crawler4j.log" /> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>INFO</level> | ||
</filter> | ||
<encoder> | ||
<pattern>%date{HH:mm:ss} %-5level [%thread] - [%logger{0}]- %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> | ||
<file>${LOG_HOME}/${LOG_FILE_NAME}</file> | ||
<append>false</append> | ||
<encoder> | ||
<pattern>%date %-5level [%thread] - [%logger] - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="com.github.tomakehurst" level="ERROR"/> | ||
<logger name="org.apache.http" level="WARN" /> | ||
<logger name="org.eclipse.jetty" level="ERROR" /> | ||
|
||
<root level="DEBUG"> | ||
<appender-ref ref="STDOUT" /> | ||
<!--<appender-ref ref="FILE" />--> | ||
<appender-ref ref="FILE" /> | ||
</root> | ||
</configuration> |