Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
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
external
on-site-service
Commits
5aaf92b4
Commit
5aaf92b4
authored
Jul 28, 2022
by
qiaobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 生产环境配置文件修改2
parent
c455b30a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
1 deletion
+56
-1
application-prod.yaml
admin/src/main/resources/application-prod.yaml
+4
-1
logback-spring-prod.xml
admin/src/main/resources/logback-spring-prod.xml
+26
-0
logback-spring-prod.xml
mini-app/src/main/resources/logback-spring-prod.xml
+26
-0
No files found.
admin/src/main/resources/application-prod.yaml
View file @
5aaf92b4
...
...
@@ -3,3 +3,6 @@ spring:
profiles
:
include
:
-
common-prod
logging
:
config
:
classpath:logback-spring-prod.xml
\ No newline at end of file
admin/src/main/resources/logback-spring-prod.xml
0 → 100644
View file @
5aaf92b4
<configuration>
<!--为了防止进程退出时,内存中的数据丢失,请加上此选项-->
<shutdownHook
class=
"ch.qos.logback.core.hook.DelayingShutdownHook"
/>
<appender
name=
"fileAppender"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<!-- daily rollover -->
<fileNamePattern>
/logs/prod/logFile.%d{yyyy-MM-dd}-%i.log
</fileNamePattern>
<!-- keep 30 days' worth of history capped at 3GB total size -->
<maxHistory>
10
</maxHistory>
<maxFileSize>
100MB
</maxFileSize>
<totalSizeCap>
3GB
</totalSizeCap>
</rollingPolicy>
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
by default -->
<encoder>
<pattern>
%d %-5level [%thread] %logger{0}: %msg %n
</pattern>
</encoder>
</appender>
<root>
<level
value=
"INFO"
/>
<appender-ref
ref=
"fileAppender"
/>
</root>
</configuration>
mini-app/src/main/resources/logback-spring-prod.xml
0 → 100644
View file @
5aaf92b4
<configuration>
<!--为了防止进程退出时,内存中的数据丢失,请加上此选项-->
<shutdownHook
class=
"ch.qos.logback.core.hook.DelayingShutdownHook"
/>
<appender
name=
"fileAppender"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<!-- daily rollover -->
<fileNamePattern>
/logs/prod/logFile.%d{yyyy-MM-dd}-%i.log
</fileNamePattern>
<!-- keep 30 days' worth of history capped at 3GB total size -->
<maxHistory>
10
</maxHistory>
<maxFileSize>
100MB
</maxFileSize>
<totalSizeCap>
3GB
</totalSizeCap>
</rollingPolicy>
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
by default -->
<encoder>
<pattern>
%d %-5level [%thread] %logger{0}: %msg %n
</pattern>
</encoder>
</appender>
<root>
<level
value=
"INFO"
/>
<appender-ref
ref=
"fileAppender"
/>
</root>
</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