Log 4 j 2メール通知送信
2878 ワード
Log 4 j 2メール通知送信
概要
導入パッケージ
Spring自体のロゴを無視
log 4 j 2をインポートする.xml${sys:user.home}/logs/プロジェクト名
configの導入
アプリケーションでyml内構成
log-custom github https://github.com/2366597634/log-custom.git
概要
, . , Redis RDB . Strategies ,interval , ,entry .
導入パッケージ
cn.kebena
log-custom
1.0-RELEASE
Spring自体のロゴを無視
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-logging
log 4 j 2をインポートする.xml${sys:user.home}/logs/プロジェクト名
configの導入
アプリケーションでyml内構成
logging:
config: classpath:config/log4j2.xml