Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
data-server
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
licc
data-server
Commits
ce536156
Commit
ce536156
authored
Mar 26, 2021
by
codezwjava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单定时任务日志配置测试1
parent
4d575855
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
logback-spring.xml
wisenergy-web-admin/src/main/resources/logback-spring.xml
+24
-0
No files found.
wisenergy-web-admin/src/main/resources/logback-spring.xml
View file @
ce536156
...
@@ -71,6 +71,30 @@
...
@@ -71,6 +71,30 @@
<!-- 项目日志 -->
<!-- 项目日志 -->
<logger
name=
"cn.wisenergy"
/>
<logger
name=
"cn.wisenergy"
/>
<!-- 定时任务日志配置-->
<!-- <property name="task_log_address" value="/opt"/>-->
<appender
name=
"order_task_logs"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
${LOG_DIR}/${project.artifactId}/order_task-log.%d{yyyy-MM-dd}.log
</fileNamePattern>
</rollingPolicy>
<encoder
class=
"ch.qos.logback.core.encoder.LayoutWrappingEncoder"
>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
</layout>
</encoder>
<!--日志文件最大的大小 -->
<triggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"
>
<MaxFileSize>
10MB
</MaxFileSize>
</triggeringPolicy>
</appender>
<logger
name=
"cn.wisenergy.service.app.impl.OrderServiceImpl"
>
<appender-ref
ref=
"order_task_logs"
/>
</logger>
<!-- 日志根 -->
<!-- 日志根 -->
<root
level=
"${LOG_LEVEL}"
>
<root
level=
"${LOG_LEVEL}"
>
<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