Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
ac866707
Commit
ac866707
authored
Dec 15, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
fc3a4573
a2d46dc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
pom.xml
spring-boot-dependencies/pom.xml
+1
-1
DefaultLogbackConfiguration.java
...ork/boot/logging/logback/DefaultLogbackConfiguration.java
+3
-2
No files found.
spring-boot-dependencies/pom.xml
View file @
ac866707
...
...
@@ -125,7 +125,7 @@
<junit.version>
4.12
</junit.version>
<liquibase.version>
3.5.3
</liquibase.version>
<log4j2.version>
2.7
</log4j2.version>
<logback.version>
1.1.
7
</logback.version>
<logback.version>
1.1.
8
</logback.version>
<lombok.version>
1.16.10
</lombok.version>
<mariadb.version>
1.4.6
</mariadb.version>
<mssql-jdbc.version>
6.1.0.jre7
</mssql-jdbc.version>
...
...
spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java
View file @
ac866707
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -26,6 +26,7 @@ import ch.qos.logback.core.ConsoleAppender;
import
ch.qos.logback.core.rolling.FixedWindowRollingPolicy
;
import
ch.qos.logback.core.rolling.RollingFileAppender
;
import
ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy
;
import
ch.qos.logback.core.util.FileSize
;
import
ch.qos.logback.core.util.OptionHelper
;
import
org.springframework.boot.bind.RelaxedPropertyResolver
;
...
...
@@ -141,7 +142,7 @@ class DefaultLogbackConfiguration {
config
.
start
(
rollingPolicy
);
SizeBasedTriggeringPolicy
<
ILoggingEvent
>
triggeringPolicy
=
new
SizeBasedTriggeringPolicy
<
ILoggingEvent
>();
triggeringPolicy
.
setMaxFileSize
(
"10MB"
);
triggeringPolicy
.
setMaxFileSize
(
FileSize
.
valueOf
(
"10MB"
)
);
appender
.
setTriggeringPolicy
(
triggeringPolicy
);
config
.
start
(
triggeringPolicy
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment