Skip to content

Commit

Permalink
fix: 로그 시간 형식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
y-ngm-n committed Jul 29, 2024
1 parent 32dc248 commit 76c0c83
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<configuration timeZone="Asia/Seoul">
<!-- 기본 콘솔 출력 설정 -->
<springProfile name="default,local">
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
Expand All @@ -13,16 +13,13 @@

<!-- 개발 환경 로깅 설정 -->
<springProfile name="dev">
<timestamp key="timestamp" datePattern="yyyy-MM-dd-HH-mm-ssSSS"/>

<property name="CONSOLE_LOG_PATTERN" value="%highlight(%-5level) %date [%thread] %cyan([%C{0} :: %M :: %L]) - %msg%n"/>
<springProperty name="name" source="cloudwatch.name" />
<springProperty name="accesskey" source="cloudwatch.accesskey" />
<springProperty name="secretkey" source="cloudwatch.secretkey" />

<appender name="aws_cloudwatch_log" class="ca.pjer.logback.AwsLogsAppender">
<layout>
<pattern>[%thread] [%date] [%level] [%file:%line] - %msg%n</pattern>
<pattern>[%thread] [%date{yyyy-MM-dd HH:mm:ss}] [%level] [%file:%line] - %msg%n</pattern>
</layout>
<logGroupName>${name}</logGroupName>
<logStreamUuidPrefix>jumo-server-dev/</logStreamUuidPrefix>
Expand Down

0 comments on commit 76c0c83

Please sign in to comment.