Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
70894468
Commit
70894468
authored
May 09, 2019
by
QIANGLU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update log file name
parent
68486b58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
logback-spring.xml
common-util/src/main/resources/logback-spring.xml
+5
-6
No files found.
common-util/src/main/resources/logback-spring.xml
View file @
70894468
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<springProperty
scope=
"context"
name=
"logName"
source=
"spring.application.name"
defaultValue=
"app"
/>
<springProperty
scope=
"context"
name=
"logName"
source=
"spring.application.name"
defaultValue=
"app"
/>
<springProperty
scope=
"context"
name=
"logPath"
source=
"log.path"
defaultValue=
"./logs"
/>
<springProperty
scope=
"context"
name=
"logPath"
source=
"log.path"
defaultValue=
"./logs"
/>
<property
name=
"PATTERN"
value=
"- |
%d{yyyy-MM-dd HH:mm:ss.SSS}|%-5level|%X{traceId}|%thread|%logger{36}-
%msg%n"
/>
<property
name=
"PATTERN"
value=
"- |
%d{yyyy-MM-dd HH:mm:ss.SSS} | %-5level | %X{traceId} | %thread | %logger{36} |
%msg%n"
/>
<property
name=
"CHARSET"
value=
"UTF-8"
/>
<property
name=
"CHARSET"
value=
"UTF-8"
/>
<jmxConfigurator/>
<jmxConfigurator/>
...
@@ -35,11 +35,11 @@
...
@@ -35,11 +35,11 @@
<onMismatch>
DENY
</onMismatch>
<onMismatch>
DENY
</onMismatch>
</filter>
</filter>
<!-- 定义文件的名称 -->
<!-- 定义文件的名称 -->
<file>
${logPath}/${logName}/error.log
<file>
${logPath}/${logName}/error
_${logName}
.log
</file>
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- rollover daily -->
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- rollover daily -->
<!-- 设置达到指定大小限制后输出的日志名称 -->
<!-- 设置达到指定大小限制后输出的日志名称 -->
<fileNamePattern>
${logPath}/${logName}/error-%d{yyyy-MM-dd}.log
</fileNamePattern>
<fileNamePattern>
${logPath}/${logName}/error
_${logName}
-%d{yyyy-MM-dd}.log
</fileNamePattern>
<maxHistory>
30
</maxHistory>
<maxHistory>
30
</maxHistory>
</rollingPolicy>
</rollingPolicy>
<encoder>
<encoder>
...
@@ -52,12 +52,11 @@
...
@@ -52,12 +52,11 @@
<appender
name=
"APP"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<appender
name=
"APP"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 定义文件的名称 -->
<!-- 定义文件的名称 -->
<file>
${logPath}/${logName}/app.log
<file>
${logPath}/${logName}/all_${logName}.log
</file>
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- rollover daily -->
<!-- rollover daily -->
<!-- 设置达到指定大小限制后输出的日志名称 -->
<!-- 设置达到指定大小限制后输出的日志名称 -->
<fileNamePattern>
${logPath}/${logName}/a
pp
-%d{yyyy-MM-dd}.log
</fileNamePattern>
<fileNamePattern>
${logPath}/${logName}/a
ll_${logName}
-%d{yyyy-MM-dd}.log
</fileNamePattern>
<maxHistory>
30
</maxHistory>
<maxHistory>
30
</maxHistory>
</rollingPolicy>
</rollingPolicy>
<encoder>
<encoder>
...
...
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