From 858b0f78001f119525bfbf5a37acf388ff480c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=E1=BB=91ng?= Date: Tue, 25 Feb 2025 23:15:48 +0700 Subject: [PATCH] feat: integrate with Splunk --- sep490-enterprise/build.gradle | 8 +++++ .../src/main/resources/log4j2-spring.xml | 33 +++++++++++++++++++ sep490-idp/build.gradle | 8 +++++ .../src/main/resources/log4j2-spring.xml | 33 +++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 sep490-enterprise/src/main/resources/log4j2-spring.xml create mode 100644 sep490-idp/src/main/resources/log4j2-spring.xml diff --git a/sep490-enterprise/build.gradle b/sep490-enterprise/build.gradle index 0f00edf9..d0daccb4 100644 --- a/sep490-enterprise/build.gradle +++ b/sep490-enterprise/build.gradle @@ -15,6 +15,9 @@ java { repositories { mavenCentral() + maven { + url 'https://splunk.jfrog.io/splunk/ext-releases-local' + } } dependencies { @@ -38,6 +41,11 @@ dependencies { // Ops implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation('org.springframework.boot:spring-boot-starter-web') { + exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' + } + implementation 'com.splunk.logging:splunk-library-javalogging:1.11.8' + implementation 'org.springframework.boot:spring-boot-starter-log4j2' // Database implementation 'org.springframework.boot:spring-boot-starter-validation' diff --git a/sep490-enterprise/src/main/resources/log4j2-spring.xml b/sep490-enterprise/src/main/resources/log4j2-spring.xml new file mode 100644 index 00000000..aea1baff --- /dev/null +++ b/sep490-enterprise/src/main/resources/log4j2-spring.xml @@ -0,0 +1,33 @@ + + + + + + + + + + GreenBuildings Enterprise + + + + + + + + + + + \ No newline at end of file diff --git a/sep490-idp/build.gradle b/sep490-idp/build.gradle index dc682207..cfe7353b 100644 --- a/sep490-idp/build.gradle +++ b/sep490-idp/build.gradle @@ -22,6 +22,9 @@ configurations { repositories { mavenCentral() + maven { + url 'https://splunk.jfrog.io/splunk/ext-releases-local' + } } dependencies { @@ -48,6 +51,11 @@ dependencies { // Ops implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation('org.springframework.boot:spring-boot-starter-web') { + exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' + } + implementation 'com.splunk.logging:splunk-library-javalogging:1.11.8' + implementation 'org.springframework.boot:spring-boot-starter-log4j2' // Database implementation 'org.springframework.boot:spring-boot-starter-validation' diff --git a/sep490-idp/src/main/resources/log4j2-spring.xml b/sep490-idp/src/main/resources/log4j2-spring.xml new file mode 100644 index 00000000..f87fc576 --- /dev/null +++ b/sep490-idp/src/main/resources/log4j2-spring.xml @@ -0,0 +1,33 @@ + + + + + + + + + + GreenBuildings Identity Provider + + + + + + + + + + + \ No newline at end of file