-
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.
Added default log4j config as example.
- Loading branch information
1 parent
648f850
commit 982a75a
Showing
1 changed file
with
21 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration strict="true" name="Default"> | ||
<Appenders> | ||
<Appender type="Console" name="STDOUT"> | ||
<Layout type="PatternLayout" pattern="%d{yyyy-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L - %m%n"/> | ||
</Appender> | ||
</Appenders> | ||
<Loggers> | ||
<!-- Logger for WebService --> | ||
<Logger name="ch.pontius.swissqr.api.requests" level="debug"/> | ||
<Appenders> | ||
<Appender type="Console" name="STDOUT"> | ||
<Layout type="PatternLayout" pattern="%d{yyyy-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L - %m%n"/> | ||
</Appender> | ||
<Appender type="RollingFile" name="WEBLOG" fileName="./logs/request.log" filePattern="./logs/request.%i.log.gz"> | ||
<Layout type="PatternLayout" pattern="%d{yyyy-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L - %m%n"/> | ||
<Policies> | ||
<SizeBasedTriggeringPolicy size="25 MB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="5" /> | ||
</Appender> | ||
</Appenders> | ||
<Loggers> | ||
<!-- Logger for WebService --> | ||
<Logger name="ch.pontius.swissqr.api.requests" level="debug" additivity="false"/> | ||
|
||
<!-- Root logger --> | ||
<Root level="info"> | ||
<AppenderRef ref="STDOUT"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> | ||
<!-- Root logger --> | ||
<Root level="info"> | ||
<AppenderRef ref="STDOUT"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |