Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
6acd8a58
Commit
6acd8a58
authored
Nov 02, 2021
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志格式
parent
8b9a2338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
logback-pro.xml
src/main/resources/logback-pro.xml
+9
-9
No files found.
src/main/resources/logback-pro.xml
View file @
6acd8a58
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<configuration>
<
springProperty
name=
"spring.application.name"
source=
"spring.application.name"
/
>
<
contextListener
class=
"ch.qos.logback.classic.jul.LevelChangePropagator"
>
<property
name=
"LOG_LEVEL_PATTERN"
value=
"%5p [${spring.application.name:-}-%X{X-B3-TraceId:-}-%X{X-B3-SpanId:-}-%X{X-Span-Export:-}]"
/
>
<resetJUL>
true
</resetJUL
>
<
property
name=
"FILE_LOG_PATTERN"
value=
"${FILE_LOG_PATTERN:-%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} --- [%thread] [%file:%line] %logger - %msg%n}"
/
>
<
/contextListener
>
<appender
name=
"FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<appender
name=
"
ROLLING
FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
/home/quant_group/logs/${spring.application.name:-application}.log
</file>
<file>
/home/quant_group/logs/${spring.application.name:-application}.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<fileNamePattern>
/home/quant_group/logs/${spring.application.name:-application}.%d{yyyy-MM-dd}-%i.log
</fileNamePattern>
<fileNamePattern>
/home/quant_group/logs/${spring.application.name:-application}.%d{yyyy-MM-dd}-%i.log
</fileNamePattern>
...
@@ -27,11 +27,11 @@
...
@@ -27,11 +27,11 @@
</encoder>
</encoder>
</appender>
</appender>
<logger
name=
"org.springframework"
level=
"
warn
"
/>
<logger
name=
"org.springframework"
level=
"
ERROR
"
/>
<logger
name=
"org.hibernate"
level=
"
warn
"
/>
<logger
name=
"org.hibernate"
level=
"
ERROR
"
/>
<logger
name=
"org.apache"
level=
"
warn
"
/>
<logger
name=
"org.apache"
level=
"
ERROR
"
/>
<logger
name=
"ch.qos.logback"
level=
"
warn
"
/>
<logger
name=
"ch.qos.logback"
level=
"
ERROR
"
/>
<logger
name=
"com.amazonaws.services.kinesis.producer.LogInputStreamReader"
level=
"
warn
"
/>
<logger
name=
"com.amazonaws.services.kinesis.producer.LogInputStreamReader"
level=
"
ERROR
"
/>
<root
level=
"INFO"
>
<root
level=
"INFO"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
...
...
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