Skip to content

Commit

Permalink
Change logging again to actually log
Browse files Browse the repository at this point in the history
  • Loading branch information
sschr15 committed Dec 18, 2023
1 parent 2cac632 commit 6e3a817
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/resources/logback.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ appender("CONSOLE", ConsoleAppender) {
target = defaultTarget
}

def loggers = ["CONSOLE"]

if (logUrl != null) {
appender("DISCORD_ALL", DiscordLogAppender) {
level = INFO
appender("DISCORD_WEBHOOK", DiscordLogAppender) {
level = WARN
url = System.getenv("DISCORD_LOGGER_URL")
}

loggers << "DISCORD_WEBHOOK"
}

root(defaultLevel, ["CONSOLE"])
root(defaultLevel, loggers)

0 comments on commit 6e3a817

Please sign in to comment.