-
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.
Upped grisu dep version. Changed log4j to xml based config and added …
…gzipping of archive logs.
- Loading branch information
Markus Binsteiner
committed
Nov 11, 2010
1 parent
48d03cb
commit 0541f93
Showing
4 changed files
with
58 additions
and
16 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
15 changes: 0 additions & 15 deletions
15
backend-modules/enunciate-backend/src/main/resources/log4j.properties
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
backend-modules/enunciate-backend/src/main/resources/log4j.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,50 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
|
||
<!-- Note that this file is refreshed by the server every 60seconds, as specified in web.xml --> | ||
|
||
<log4j:configuration debug="true"> | ||
|
||
<appender name="ROLL" class="org.apache.log4j.rolling.RollingFileAppender"> | ||
<!-- The active file to log to --> | ||
<param name="file" value="/var/log/grisu/grisu.log" /> | ||
<param name="append" value="true" /> | ||
<param name="encoding" value="UTF-8" /> | ||
|
||
<rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy"> | ||
<!-- The file to roll to, this is a fairly intelligent parameter, if the file | ||
ends in .gz, it gzips it, based on the date stamp it rolls at that time, | ||
default is yyyy-MM-dd, (rolls at midnight) | ||
See: http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j/rolling/TimeBasedRollingPolicy.html --> | ||
<param name="FileNamePattern" value="/var/log/grisu/grisu.%d.log.gz" /> | ||
</rollingPolicy> | ||
|
||
<layout class="org.apache.log4j.PatternLayout"> | ||
<!-- The log message pattern --> | ||
<param name="ConversionPattern" value="%5p %d{ISO8601} [%t][%x] %c - %m%n" /> | ||
</layout> | ||
</appender> | ||
|
||
<!-- Loggers to filter out various class paths --> | ||
|
||
<logger name="org.hibernate.engine.loading.LoadContexts" additivity="false"> | ||
<level value="error"/> | ||
<appender-ref ref="ROLL" /> | ||
</logger> | ||
|
||
<!-- Debugging loggers --> | ||
|
||
<!-- Uncomment to enable debug on calpoly code only --> | ||
|
||
<logger name="org.vpac.grisu"> | ||
<level value="debug"/> | ||
<appender-ref ref="ROLL" /> | ||
</logger> | ||
|
||
|
||
<root> | ||
<priority value="info" /> | ||
<appender-ref ref="ROLL" /> | ||
</root> | ||
|
||
</log4j: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