File tree Expand file tree Collapse file tree 5 files changed +44
-41
lines changed Expand file tree Collapse file tree 5 files changed +44
-41
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<packaging >war</packaging >
11
11
12
- <name >identity</name >
12
+ <name >identity-api </name >
13
13
<description >iEMR Identity Service</description >
14
14
15
15
<parent >
60
60
<dependency >
61
61
<groupId >org.springframework.boot</groupId >
62
62
<artifactId >spring-boot-starter</artifactId >
63
-
64
- <exclusions >
65
- <exclusion >
66
- <groupId >org.springframework.boot</groupId >
67
- <artifactId >spring-boot-starter-logging</artifactId >
68
- </exclusion >
69
- </exclusions >
70
63
</dependency >
71
64
<dependency >
72
65
<groupId >org.springframework.boot</groupId >
73
66
<artifactId >spring-boot-starter-web</artifactId >
74
67
</dependency >
75
-
68
+ <dependency >
69
+ <groupId >co.elastic.logging</groupId >
70
+ <artifactId >logback-ecs-encoder</artifactId >
71
+ <version >1.3.2</version >
72
+ </dependency >
76
73
<dependency >
77
74
<groupId >org.springframework.boot</groupId >
78
75
<artifactId >spring-boot-devtools</artifactId >
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ logging.level.org.hibernate=INFO
28
28
logging.level.com.iemr =DEBUG
29
29
logging.level.org.springframework =INFO
30
30
31
+ logging.path =logs/
32
+ logging.file.name =logs/identity-api.log
33
+
31
34
spring.datasource.tomcat.initial-size =5
32
35
spring.datasource.tomcat.max-idle =15
33
36
spring.datasource.tomcat.max-active =30
Original file line number Diff line number Diff line change
1
+ <configuration >
2
+ <property name =" LOG_FILE"
3
+ value =" ${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/my-api}" />
4
+ <include resource =" org/springframework/boot/logging/logback/defaults.xml" />
5
+ <include resource =" org/springframework/boot/logging/logback/console-appender.xml" />
6
+ <appender name =" ECS_JSON_FILE" class =" ch.qos.logback.core.rolling.RollingFileAppender" >
7
+ <file >${LOG_FILE}.json</file >
8
+ <rollingPolicy class =" ch.qos.logback.core.rolling.TimeBasedRollingPolicy" >
9
+ <fileNamePattern >${LOG_FILE}.json.%d{yyyy-MM-dd}.gz</fileNamePattern >
10
+ <maxFileSize >100MB</maxFileSize >
11
+ <maxHistory >0</maxHistory >
12
+ <cleanHistoryOnStart >true</cleanHistoryOnStart >
13
+ </rollingPolicy >
14
+ <encoder class =" co.elastic.logging.logback.EcsEncoder" />
15
+ </appender >
16
+ <appender name =" ASYNC_ECS" class =" ch.qos.logback.classic.AsyncAppender" >
17
+ <appender-ref ref =" ECS_JSON_FILE" />
18
+ <queueSize >512</queueSize >
19
+ <discardingThreshold >0</discardingThreshold >
20
+ <includeCallerData >false</includeCallerData >
21
+ </appender >
22
+
23
+ <root level =" INFO" >
24
+ <appender-ref ref =" CONSOLE" />
25
+ <appender-ref ref =" ASYNC_ECS" />
26
+ </root >
27
+ </configuration >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <jboss-deployment-structure >
2
+ <deployment >
3
+ <exclusions >
4
+ <module name =" org.slf4j" />
5
+ <module name =" org.slf4j.impl" />
6
+ </exclusions >
7
+ </deployment >
8
+ </jboss-deployment-structure >
You can’t perform that action at this time.
0 commit comments