Skip to content

Commit

Permalink
Rolling log added
Browse files Browse the repository at this point in the history
  • Loading branch information
gitorko committed Jan 21, 2016
1 parent d3b4fc1 commit 0653684
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
24 changes: 19 additions & 5 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>
%d{yyyy-MM-dd HH:mm:ss} - %msg%n
</Pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>excord.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>
%d{yyyy-MM-dd HH:mm:ss} - %msg%n
</Pattern>
</encoder>

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>excord.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>

<root level="info">
<appender-ref ref="FILE" />
</root>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/testcase_form.ftl.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ <h3>Test Case</h3>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="col-md-11">
<label for="tdescription">Description<font color="red">*</font></label>
<textarea class="form-control" name="tdescription" id="tdescription" rows="4" required><#if tc??>${tc.description}</#if></textarea>
<br/>
Expand Down

0 comments on commit 0653684

Please sign in to comment.