Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/main/resources/logback.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import ch.qos.logback.classic.encoder.PatternLayoutEncoder
import ch.qos.logback.core.ConsoleAppender
import ch.qos.logback.core.rolling.RollingFileAppender
import ch.qos.logback.core.rolling.TimeBasedRollingPolicy
import ch.qos.logback.core.status.OnConsoleStatusListener
Expand All @@ -13,8 +12,7 @@ LogbackConfiguration logbackConfig = new LogbackConfiguration()
//for more details about groovy conf, see http://logback.qos.ch/manual/groovy.html
statusListener(OnConsoleStatusListener)
String rollingFile = "FILE"
String console = "CONSOLE"
List whereToLog = [rollingFile, console]
List whereToLog = [rollingFile]
String logPattern = logbackConfig.getLogPattern()
String scanTime = logbackConfig.getScanTime()
String currentLogFile = logbackConfig.getLoggerFilename()
Expand Down Expand Up @@ -46,12 +44,6 @@ appender(rollingFile, RollingFileAppender) {
}
}

appender(console, ConsoleAppender) {
encoder(PatternLayoutEncoder) {
pattern = logPattern
}
}

root(INFO, whereToLog)
if (System.getProperty(ACTIVE_PROFILES_PROPERTY_NAME) == PRODUCTION) {
logger("com.ofg", INFO)
Expand Down