-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
branches: | ||
- develop | ||
- hotfix/** | ||
- feat/config | ||
|
||
jobs: | ||
build-and-deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
|
||
<conversionRule conversionWord="clr" | ||
converterClass="org.springframework.boot.logging.logback.ColorConverter"/> | ||
<conversionRule conversionWord="wex" | ||
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/> | ||
<conversionRule conversionWord="wEx" | ||
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/> | ||
|
||
<property name="CONSOLE_LOG_PATTERN" | ||
value="${CONSOLE_LOG_PATTERN:-%clr(%d{${LOG_DATEFORMAT_PATTERN:-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}}"/> | ||
|
||
<springProperty name="ACTIVE_PROFILE" source="profile.active"/> | ||
<springProperty name="AWS_ACCESS_KEY" source="cloud.aws.credentials.accessKey"/> | ||
<springProperty name="AWS_SECRET_KEY" source="cloud.aws.credentials.secretKey"/> | ||
|
||
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="CloudWatchAppender" class="ca.pjer.logback.AwsLogsAppender"> | ||
<layout> | ||
<pattern>[%thread] [%date] [%level] [%file:%line] - %msg%n</pattern> | ||
</layout> | ||
<!-- Information of Cloudwatch --> | ||
<logGroupName>showpot/${ACTIVE_PROFILE}</logGroupName> | ||
<logRegion>ap-northeast-2</logRegion> | ||
<maxBatchLogEvents>50</maxBatchLogEvents> | ||
<maxFlushTimeMillis>60000</maxFlushTimeMillis> | ||
<maxBlockTimeMillis>5000</maxBlockTimeMillis> | ||
<retentionTimeDays>0</retentionTimeDays> | ||
<accessKeyId>${AWS_ACCESS_KEY}</accessKeyId> | ||
<secretAccessKey>${AWS_SECRET_KEY}</secretAccessKey> | ||
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>INFO</level> | ||
</filter> | ||
|
||
<encoder> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] [%5level] %logger{35}[%method:%line] %m%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<conversionRule conversionWord="clr" | ||
converterClass="org.springframework.boot.logging.logback.ColorConverter"/> | ||
<conversionRule conversionWord="wex" | ||
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/> | ||
<conversionRule conversionWord="wEx" | ||
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/> | ||
|
||
<property name="CONSOLE_LOG_PATTERN" | ||
value="${CONSOLE_LOG_PATTERN:-%clr(%d{${LOG_DATEFORMAT_PATTERN:-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}}"/> | ||
|
||
<springProperty name="ACTIVE_PROFILE" source="profile.active"/> | ||
<springProperty name="AWS_ACCESS_KEY" source="cloud.aws.credentials.accessKey"/> | ||
<springProperty name="AWS_SECRET_KEY" source="cloud.aws.credentials.secretKey"/> | ||
|
||
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="CloudWatchAppender" class="ca.pjer.logback.AwsLogsAppender"> | ||
<layout> | ||
<pattern>[%thread] [%date] [%level] [%file:%line] - %msg%n</pattern> | ||
</layout> | ||
<!-- Information of Cloudwatch --> | ||
<logGroupName>showpot/${ACTIVE_PROFILE}</logGroupName> | ||
<logRegion>ap-northeast-2</logRegion> | ||
<maxBatchLogEvents>50</maxBatchLogEvents> | ||
<maxFlushTimeMillis>60000</maxFlushTimeMillis> | ||
<maxBlockTimeMillis>5000</maxBlockTimeMillis> | ||
<retentionTimeDays>0</retentionTimeDays> | ||
<accessKeyId>${AWS_ACCESS_KEY}</accessKeyId> | ||
<secretAccessKey>${AWS_SECRET_KEY}</secretAccessKey> | ||
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>INFO</level> | ||
</filter> | ||
|
||
<encoder> | ||
<charset>UTF-8</charset> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] [%5level] %logger{35}[%method:%line] %m%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="info"> | ||
<springProfile name="local"> | ||
<root level="INFO"> | ||
<appender-ref ref="Console"/> | ||
</root> | ||
<appender-ref ref="Console"/> | ||
</springProfile> | ||
|
||
<springProfile name="dev"> | ||
<root level="INFO"> | ||
<appender-ref ref="CloudWatchAppender"/> | ||
</root> | ||
<appender-ref ref="CloudWatchAppender"/> | ||
</springProfile> | ||
|
||
<springProfile name="prod"> | ||
<root level="INFO"> | ||
<appender-ref ref="CloudWatchAppender"/> | ||
</root> | ||
<appender-ref ref="CloudWatchAppender"/> | ||
</springProfile> | ||
</root> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.