Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
HSCloudAgent-Client
Project
Project
Details
Activity
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
谢恒
HSCloudAgent-Client
Commits
36b514e6
Commit
36b514e6
authored
Jul 01, 2021
by
谢恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改每日最大文件数
parent
3f97fb94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
logback-spring.xml
src/main/resources/logback-spring.xml
+6
-1
No files found.
src/main/resources/logback-spring.xml
View file @
36b514e6
...
@@ -52,7 +52,6 @@
...
@@ -52,7 +52,6 @@
<appender
name=
"DEBUG_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<appender
name=
"DEBUG_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 正在记录的日志文件的路径及文件名~~~~~file设置打印的文件的路径及文件名,建议绝对路径-->
<!-- 正在记录的日志文件的路径及文件名~~~~~file设置打印的文件的路径及文件名,建议绝对路径-->
<file>
${logging.path}/web_debug.log
</file>
<file>
${logging.path}/web_debug.log
</file>
<!--日志文档输出格式-->
<!--日志文档输出格式-->
<encoder>
<encoder>
<!--指定日志格式-->
<!--指定日志格式-->
...
@@ -108,6 +107,7 @@
...
@@ -108,6 +107,7 @@
</appender>
</appender>
<!-- 2.2 level为 INFO 日志,时间滚动输出 -->
<!-- 2.2 level为 INFO 日志,时间滚动输出 -->
<appender
name=
"INFO_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<appender
name=
"INFO_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 正在记录的日志文档的路径及文档名 -->
<!-- 正在记录的日志文档的路径及文档名 -->
...
@@ -128,6 +128,11 @@
...
@@ -128,6 +128,11 @@
<!--日志文档保留天数-->
<!--日志文档保留天数-->
<maxHistory>
7
</maxHistory>
<maxHistory>
7
</maxHistory>
</rollingPolicy>
</rollingPolicy>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.FixedWindowRollingPolicy"
>
<fileNamePattern>
${logging.path}/web-error-%d{yyyy-MM-dd}.%i.log
</fileNamePattern>
<minIndex>
1
</minIndex>
<maxIndex>
3
</maxIndex>
</rollingPolicy>
<!-- 此日志文档只记录info级别的 -->
<!-- 此日志文档只记录info级别的 -->
<filter
class=
"ch.qos.logback.classic.filter.LevelFilter"
>
<filter
class=
"ch.qos.logback.classic.filter.LevelFilter"
>
<level>
info
</level>
<level>
info
</level>
...
...
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