Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
a9dc8dcd
Commit
a9dc8dcd
authored
Jul 17, 2026
by
pfh
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
326b8ef1
4868b8d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
11 deletions
+36
-11
custom-server-starter/src/main/resources/application.yml
+5
-1
custom-server-starter/src/main/resources/logback-spring.xml
+31
-10
No files found.
custom-server-starter/src/main/resources/application.yml
View file @
a9dc8dcd
...
...
@@ -137,7 +137,11 @@ management:
web
:
base-path
:
/api/v3/actuator
exposure
:
include
:
metrics,health
include
:
health
endpoint
:
health
:
probes
:
enabled
:
false
jomalls
:
job
:
execute
:
true
custom-server-starter/src/main/resources/logback-spring.xml
View file @
a9dc8dcd
<?xml version="1.0" encoding="UTF-8"?>
<configuration
scan=
"true"
scanPeriod=
"30
0
seconds"
debug=
"false"
>
<configuration
scan=
"true"
scanPeriod=
"30 seconds"
debug=
"false"
>
<property
name=
"max.history.days"
value=
"30"
/>
<property
name=
"max.file.size"
value=
"50MB"
/>
<property
name=
"max.total.size"
value=
"2GB"
/>
...
...
@@ -15,12 +15,29 @@
<pattern>
${log.pattern}
</pattern>
<charset>
UTF-8
</charset>
</encoder>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
INFO
</level>
</filter>
</appender>
<!-- ==================== 文件输出 ==================== -->
<!-- 系统日志:仅 DEBUG -->
<appender
name=
"file_debug"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${log.path}/sys-debug.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<fileNamePattern>
${log.path}/sys-debug.%d{yyyy-MM-dd}.%i.log.gz
</fileNamePattern>
<maxFileSize>
${max.file.size}
</maxFileSize>
<maxHistory>
${max.history.days}
</maxHistory>
<totalSizeCap>
${max.total.size}
</totalSizeCap>
<cleanHistoryOnStart>
true
</cleanHistoryOnStart>
</rollingPolicy>
<encoder>
<pattern>
${log.pattern}
</pattern>
<charset>
UTF-8
</charset>
</encoder>
<filter
class=
"ch.qos.logback.classic.filter.LevelFilter"
>
<level>
DEBUG
</level>
<onMatch>
ACCEPT
</onMatch>
<onMismatch>
DENY
</onMismatch>
</filter>
</appender>
<!-- 系统日志:仅 INFO -->
<appender
name=
"file_info"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${log.path}/sys-info.log
</file>
...
...
@@ -83,7 +100,12 @@
<onMismatch>
DENY
</onMismatch>
</filter>
</appender>
<appender
name=
"async_file_debug"
class=
"ch.qos.logback.classic.AsyncAppender"
>
<neverBlock>
true
</neverBlock>
<queueSize>
4096
</queueSize>
<discardingThreshold>
0
</discardingThreshold>
<appender-ref
ref=
"file_debug"
/>
</appender>
<appender
name=
"async_file_info"
class=
"ch.qos.logback.classic.AsyncAppender"
>
<neverBlock>
true
</neverBlock>
<queueSize>
512
</queueSize>
...
...
@@ -104,18 +126,17 @@
</appender>
<!-- ==================== 框架日志级别控制 ==================== -->
<!-- MyBatis / MyBatis-Plus SQL 日志(排查问题时打开) -->
<!--
MyBatis / MyBatis-Plus:默认关闭 SQL 日志,排查问题时临时打开
<logger name="org.mybatis" level="DEBUG"/>
<logger name="com.baomidou.mybatisplus" level="DEBUG"/>
-->
<springProfile
name=
"default"
>
<logger
name=
"com.jomalls.custom"
level=
"DEBUG"
/>
</springProfile>
<logger name="com.jomalls.custom" level="DEBUG"/>
-->
<!-- ==================== 根配置 ==================== -->
<root
level=
"INFO"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"async_file_debug"
/>
<appender-ref
ref=
"async_file_info"
/>
<appender-ref
ref=
"async_file_warn"
/>
<appender-ref
ref=
"async_file_error"
/>
...
...
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