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.
Merge branch 'master' into PR/halt-on-error
- Loading branch information
Showing
12 changed files
with
370 additions
and
479 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
crawler4j-examples/crawler4j-examples-base/src/main/resources/logback.xml
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?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" /> | ||
</root> | ||
</configuration> |
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
Oops, something went wrong.