Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
a0412c56
Commit
a0412c56
authored
Nov 22, 2024
by
wangpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加邮件告警配置
parent
988c6b11
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
312 additions
and
80 deletions
+312
-80
CustomerBusinessContoller.java
...1/yifu/archives/controller/CustomerBusinessContoller.java
+0
-6
application.yml
...ives/yifu-archives-biz/src/main/resources/application.yml
+0
-1
logback-spring.xml
...s/yifu-archives-biz/src/main/resources/logback-spring.xml
+22
-23
logback-spring.xml
yifu-auth/src/main/resources/logback-spring.xml
+48
-8
logback-spring.xml
...s/yifu-business-biz/src/main/resources/logback-spring.xml
+3
-2
logback-spring.xml
yifu-ekp/yifu-ekp-biz/src/main/resources/logback-spring.xml
+48
-8
logback-spring.xml
...yifu-insurances-biz/src/main/resources/logback-spring.xml
+48
-8
logback-spring.xml
...ary/yifu-salary-biz/src/main/resources/logback-spring.xml
+48
-8
logback-spring.xml
...ial/yifu-social-biz/src/main/resources/logback-spring.xml
+47
-8
logback-spring.xml
...-upms/yifu-upms-biz/src/main/resources/logback-spring.xml
+48
-8
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/CustomerBusinessContoller.java
View file @
a0412c56
...
@@ -64,12 +64,6 @@ public class CustomerBusinessContoller {
...
@@ -64,12 +64,6 @@ public class CustomerBusinessContoller {
private
final
CacheManager
cacheManager
;
private
final
CacheManager
cacheManager
;
@GetMapping
(
"/errEMail"
)
public
R
<
String
>
errEMail
(
HttpServletRequest
request
)
throws
Exception
{
throw
new
Exception
(
"errEMail异常测试!"
);
}
/**
/**
* 简单分页查询
* 简单分页查询
* @param page 分页对象
* @param page 分页对象
...
...
yifu-archives/yifu-archives-biz/src/main/resources/application.yml
View file @
a0412c56
...
@@ -53,7 +53,6 @@ security:
...
@@ -53,7 +53,6 @@ security:
-
/tpreempmain/getPhoneByCardAndName
-
/tpreempmain/getPhoneByCardAndName
-
/tpreempmain/sendCode
-
/tpreempmain/sendCode
-
/tpreempmain/checkCode
-
/tpreempmain/checkCode
-
/customerBusiness/customerInfo/errEMail
# 文件上传相关 支持阿里云、华为云、腾讯、minio
# 文件上传相关 支持阿里云、华为云、腾讯、minio
...
...
yifu-archives/yifu-archives-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
...
@@ -19,27 +19,7 @@
...
@@ -19,27 +19,7 @@
<pattern>
${CONSOLE_LOG_PATTERN}
</pattern>
<pattern>
${CONSOLE_LOG_PATTERN}
</pattern>
</encoder>
</encoder>
</appender>
</appender>
<!--邮件提醒-->
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<smtpPort>
465
</smtpPort>
<username>
information@wanxin-holdings.com
</username>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<!-- Log file debug output -->
<!-- Log file debug output -->
<appender
name=
"debug"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<appender
name=
"debug"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
...
@@ -69,6 +49,27 @@
...
@@ -69,6 +49,27 @@
<level>
ERROR
</level>
<level>
ERROR
</level>
</filter>
</filter>
</appender>
</appender>
<!--邮件提醒-->
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<smtpPort>
465
</smtpPort>
<username>
information@wanxin-holdings.com
</username>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<springProfile
name=
"prd"
>
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<root
level=
"error"
>
...
@@ -83,7 +84,6 @@
...
@@ -83,7 +84,6 @@
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</root>
</springProfile>
</springProfile>
<springProfile
name=
"test"
>
<springProfile
name=
"test"
>
...
@@ -92,7 +92,6 @@
...
@@ -92,7 +92,6 @@
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</root>
</springProfile>
</springProfile>
</configuration>
</configuration>
...
...
yifu-auth/src/main/resources/logback-spring.xml
View file @
a0412c56
...
@@ -16,8 +16,9 @@
...
@@ -16,8 +16,9 @@
-->
-->
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
@@ -68,10 +69,49 @@
...
@@ -68,10 +69,49 @@
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"error"
/>
</logger>
</logger>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<!--邮件提醒-->
<root
level=
"INFO"
>
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<appender-ref
ref=
"console"
/>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<appender-ref
ref=
"debug"
/>
<smtpPort>
465
</smtpPort>
<appender-ref
ref=
"error"
/>
<username>
information@wanxin-holdings.com
</username>
</root>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</springProfile>
<springProfile
name=
"dev"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
</configuration>
</configuration>
yifu-business/yifu-business-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
...
yifu-ekp/yifu-ekp-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
@@ -48,11 +49,50 @@
...
@@ -48,11 +49,50 @@
</filter>
</filter>
</appender>
</appender>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<!--邮件提醒-->
<root
level=
"INFO"
>
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<appender-ref
ref=
"console"
/>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<appender-ref
ref=
"debug"
/>
<smtpPort>
465
</smtpPort>
<appender-ref
ref=
"error"
/>
<username>
information@wanxin-holdings.com
</username>
</root>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</springProfile>
<springProfile
name=
"dev"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
</configuration>
</configuration>
yifu-insurances/yifu-insurances-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
@@ -49,11 +50,50 @@
...
@@ -49,11 +50,50 @@
</appender>
</appender>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<!--邮件提醒-->
<root
level=
"error"
>
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<appender-ref
ref=
"console"
/>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<appender-ref
ref=
"debug"
/>
<smtpPort>
465
</smtpPort>
<appender-ref
ref=
"error"
/>
<username>
information@wanxin-holdings.com
</username>
</root>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</springProfile>
<springProfile
name=
"dev"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
</configuration>
</configuration>
yifu-salary/yifu-salary-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
@@ -53,11 +54,50 @@
...
@@ -53,11 +54,50 @@
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"error"
/>
</logger>
</logger>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<!--邮件提醒-->
<root
level=
"error"
>
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<appender-ref
ref=
"console"
/>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<appender-ref
ref=
"debug"
/>
<smtpPort>
465
</smtpPort>
<appender-ref
ref=
"error"
/>
<username>
information@wanxin-holdings.com
</username>
</root>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</springProfile>
<springProfile
name=
"dev"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
</configuration>
</configuration>
yifu-social/yifu-social-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
@@ -48,12 +49,50 @@
...
@@ -48,12 +49,50 @@
</filter>
</filter>
</appender>
</appender>
<!--邮件提醒-->
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<smtpPort>
465
</smtpPort>
<username>
information@wanxin-holdings.com
</username>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"error"
/>
</root>
<appender-ref
ref=
"MAIL"
/>
</root>
</springProfile>
<springProfile
name=
"dev"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
</configuration>
</configuration>
yifu-upms/yifu-upms-biz/src/main/resources/logback-spring.xml
View file @
a0412c56
...
@@ -16,8 +16,9 @@
...
@@ -16,8 +16,9 @@
-->
-->
<configuration
debug=
"false"
scan=
"false"
>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<springProperty
scop=
"context"
name=
"springAppName"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<springProperty
scop=
"context"
name=
"springAppActive"
source=
"spring.profiles.active"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${springAppName}"
/>
<!-- 彩色日志格式 -->
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
...
@@ -63,10 +64,49 @@
...
@@ -63,10 +64,49 @@
</filter>
</filter>
</appender>
</appender>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<!--邮件提醒-->
<root
level=
"error"
>
<appender
name=
"MAIL"
class=
"ch.qos.logback.classic.net.SMTPAppender"
>
<appender-ref
ref=
"console"
/>
<smtpHost>
smtp.exmail.qq.com
</smtpHost>
<appender-ref
ref=
"debug"
/>
<smtpPort>
465
</smtpPort>
<appender-ref
ref=
"error"
/>
<username>
information@wanxin-holdings.com
</username>
</root>
<password>
QmdCaQSPmCAQEddd
</password>
<SSL>
true
</SSL>
<asynchronousSending>
true
</asynchronousSending>
<to>
wangpeng@wanxin-holdings.com,fangxinjiang@wanxin-holdings.com,hongguangwu@wanxin-holdings.com
</to>
<from>
information@wanxin-holdings.com
</from>
<subject>
hro-mvp ${springAppActive}环境 ${springAppName}服务: %-20msg 错误
</subject>
<charsetEncoding>
UTF-8
</charsetEncoding>
<cyclicBufferTracker
class=
"ch.qos.logback.core.spi.CyclicBufferTracker"
>
<!-- <!– 每个电子邮件只发送一个日志条目 –>-->
<bufferSize>
1
</bufferSize>
</cyclicBufferTracker>
<layout
class=
"ch.qos.logback.classic.html.HTMLLayout"
/>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<springProfile
name=
"prd"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
<appender-ref
ref=
"MAIL"
/>
</root>
</springProfile>
<springProfile
name=
"dev"
>
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
<springProfile
name=
"test"
>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"error"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</springProfile>
</configuration>
</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