Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-03-06 05:39:48 -0500
committerMarkus Tiede2014-03-06 05:39:53 -0500
commitf425df1a9a11c50db132b70ca0ae6c180372d0f3 (patch)
tree2a9fca6c2a090b9f3cc1dd43c11ed7537430adc3 /org.eclipse.jubula.autagent
parentf5567c6bec3238cdffa72a5a1bcc7f8a00dd4fd3 (diff)
downloadorg.eclipse.jubula.core-f425df1a9a11c50db132b70ca0ae6c180372d0f3.tar.gz
org.eclipse.jubula.core-f425df1a9a11c50db132b70ca0ae6c180372d0f3.tar.xz
org.eclipse.jubula.core-f425df1a9a11c50db132b70ca0ae6c180372d0f3.zip
Sprint task - reviewed and altered patch for http://eclip.se/429460 - added auto ZIP option + non-time based appender rolling.
Diffstat (limited to 'org.eclipse.jubula.autagent')
-rw-r--r--org.eclipse.jubula.autagent/resources/logback.xml24
1 files changed, 17 insertions, 7 deletions
diff --git a/org.eclipse.jubula.autagent/resources/logback.xml b/org.eclipse.jubula.autagent/resources/logback.xml
index 37f8c3f91..3d6028330 100644
--- a/org.eclipse.jubula.autagent/resources/logback.xml
+++ b/org.eclipse.jubula.autagent/resources/logback.xml
@@ -7,13 +7,23 @@
</pattern>
</encoder>
</appender>
- <appender name="FILE" class="ch.qos.logback.core.FileAppender">
- <file>${user.home}/.jubula/logs/aut_agent.log</file>
- <encoder>
- <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
- </pattern>
- </encoder>
- </appender>
+ <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>${user.home}/.jubula/logs/aut_agent.log</file>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>${user.home}/.jubula/logs/archive/aut_agent.%i.log.zip</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>3</maxIndex>
+ </rollingPolicy>
+
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>10MB</maxFileSize>
+ </triggeringPolicy>
+
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
<root level="warn">
<appender-ref ref="FILE" />
</root>

Back to the top