Skip to content

Commit

Permalink
chore: 디스코드 알림 봇 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
f1v3-dev committed Sep 26, 2024
1 parent 3275521 commit a5ba3b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ dependencies {
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'

// logback appender discord
implementation 'com.github.napstr:logback-discord-appender:1.0.0'
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

<springProfile name="dev">
<springProfile name="prod">
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
</springProfile>
<springProfile name="prod">
<springProfile name="dev">
<property resource="application.properties"/>
<springProperty name="DISCORD_WEBHOOK_URL" source="logging.discord.webhook-url"/>
<springProperty name="DISCORD_WEBHOOK_URL" source="logging.discord.webhook-uri"/>
<appender name="DISCORD" class="com.github.napstr.logback.DiscordAppender">
<webhookUri>${DISCORD_WEBHOOK_URL}</webhookUri>
<layout class="ch.qos.logback.classic.PatternLayout">
Expand Down

0 comments on commit a5ba3b6

Please sign in to comment.