Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
auto-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xie.qin
auto-test
Commits
0d1d56d5
Commit
0d1d56d5
authored
Sep 14, 2021
by
xie.qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change log file persistence path.
parent
d4264c14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
logback-spring.xml
api/src/main/resources/logback-spring.xml
+5
-5
No files found.
api/src/main/resources/logback-spring.xml
View file @
0d1d56d5
...
...
@@ -8,7 +8,7 @@
<contextName>
logback-spring
</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 -->
<property
name=
"logging.path"
value=
"./
target/cucumber/
log"
/>
<property
name=
"logging.path"
value=
"./log"
/>
<!--0. 日志格式和颜色渲染 -->
<!-- 彩色日志依赖的渲染类 -->
...
...
@@ -35,7 +35,7 @@
<!-- 2.1 level为 DEBUG 日志,时间滚动输出 -->
<appender
name=
"CUSTOM_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 正在记录的日志文档的路径及文档名 -->
<file>
${logging.path}/a
utotest_custom
.log
</file>
<file>
${logging.path}/a
ll
.log
</file>
<!--日志文档输出格式-->
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
...
...
@@ -60,7 +60,7 @@
<!-- 2.2 level为 INFO 日志,时间滚动输出 -->
<appender
name=
"INFO_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 正在记录的日志文档的路径及文档名 -->
<file>
${logging.path}/
autotest_
info.log
</file>
<file>
${logging.path}/info.log
</file>
<!--日志文档输出格式-->
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
...
...
@@ -87,7 +87,7 @@
<!-- 2.3 level为 WARN 日志,时间滚动输出 -->
<appender
name=
"WARN_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 正在记录的日志文档的路径及文档名 -->
<file>
${logging.path}/
autotest_
warn.log
</file>
<file>
${logging.path}/warn.log
</file>
<!--日志文档输出格式-->
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
...
...
@@ -113,7 +113,7 @@
<!-- 2.4 level为 ERROR 日志,时间滚动输出 -->
<appender
name=
"ERROR_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 正在记录的日志文档的路径及文档名 -->
<file>
${logging.path}/
autotest_
error.log
</file>
<file>
${logging.path}/error.log
</file>
<!--日志文档输出格式-->
<encoder>
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
...
...
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