Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
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
Administrator
browser-backend
Commits
fdbb63bc
Commit
fdbb63bc
authored
Jul 20, 2020
by
xuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生产环境日志打印级别
parent
25d269e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
logback-spring.xml
src/main/resources/logback-spring.xml
+9
-9
No files found.
src/main/resources/logback-spring.xml
View file @
fdbb63bc
<?xml version="1.0" encoding="UTF-8"?>
<configuration
scan=
"true"
debug=
"false"
>
<property
name=
"application.name"
value=
"browserBackend"
/>
<property
name=
"application.name"
value=
"browserBackend"
/>
<appender
name=
"console"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
...
...
@@ -68,25 +68,25 @@
<springProfile
name=
"default,dev"
>
<root
level=
"info"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- In production env, logging info++ -->
<root
level=
"info"
>
<appender-ref
ref=
"info_file"
/>
<appender-ref
ref=
"warn_file"
/>
<appender-ref
ref=
"error_file"
/>
<appender-ref
ref=
"info_file"
/>
<appender-ref
ref=
"warn_file"
/>
<appender-ref
ref=
"error_file"
/>
</root>
</springProfile>
<springProfile
name=
"prod"
>
<!-- In production env, logging warn++ -->
<root
level=
"
warn
"
>
<appender-ref
ref=
"info_file"
/>
<appender-ref
ref=
"warn_file"
/>
<appender-ref
ref=
"error_file"
/>
<root
level=
"
info
"
>
<appender-ref
ref=
"info_file"
/>
<appender-ref
ref=
"warn_file"
/>
<appender-ref
ref=
"error_file"
/>
</root>
</springProfile>
</configuration>
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