File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11application-prod.yml
2+ application-dev.yml
23application-local.yml
Original file line number Diff line number Diff line change 1+ <configuration >
2+ <springProperty name =" ACCESS_KEY" source =" aws.cloudwatch.access-key" />
3+ <springProperty name =" SECRET_KEY" source =" aws.cloudwatch.secret-key" />
4+ <springProperty name =" LOG_REGION" source =" aws.cloudwatch.region" />
5+
6+ <appender name =" CONSOLE" class =" ch.qos.logback.core.ConsoleAppender" >
7+ <encoder >
8+ <pattern >%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %clr(%5level) %cyan(%logger) - %msg%n</pattern >
9+ </encoder >
10+ </appender >
11+
12+ <appender name =" AWS_LOGS" class =" ca.pjer.logback.AwsLogsAppender" >
13+ <filter class =" ch.qos.logback.classic.filter.ThresholdFilter" >
14+ <level >info</level >
15+ </filter >
16+ <logGroupName >JECT-log</logGroupName >
17+ <logStreamUuidPrefix >JECT-log-dev-</logStreamUuidPrefix >
18+ <logRegion >${LOG_REGION}</logRegion >
19+ <accessKeyId >${ACCESS_KEY}</accessKeyId >
20+ <secretAccessKey >${SECRET_KEY}</secretAccessKey >
21+ <maxFlushTimeMillis >5000</maxFlushTimeMillis >
22+ <maxBatchLogEvents >50</maxBatchLogEvents >
23+ </appender >
24+
25+ <logger name =" org.ject.support" level =" DEBUG" />
26+ <root level =" INFO" >
27+ <appender-ref ref =" AWS_LOGS" />
28+ <appender-ref ref =" CONSOLE" />
29+ </root >
30+ </configuration >
You can’t perform that action at this time.
0 commit comments