bigbluebutton-Github/bbb-web-api/grails-app/conf/logback.groovy
Richard Alam e9227a8230 Upgrade to latest grails
Create new project called bbb-web-api using latest grails.
2016-05-27 21:31:03 +00:00

35 lines
945 B
Groovy
Executable File

import grails.util.BuildSettings
import grails.util.Environment
//import org.apache.log4j.DailyRollingFileAppender
scan("30 seconds")
// See http://logback.qos.ch/manual/groovy.html for details on configuration
appender('STDOUT', ConsoleAppender) {
encoder(PatternLayoutEncoder) {
pattern = "%level %logger - %msg%n"
}
}
//appender('DAILY_ROLLING_FILE', DailyRollingFileAppender) {
// encoder(PatternLayoutEncoder) {
// pattern = "%level %logger - %msg%n"
// }
//}
logger("org.bigbluebutton", DEBUG, ["STDOUT"])
root(ERROR, ['STDOUT'])
def targetDir = BuildSettings.TARGET_DIR
if (Environment.isDevelopmentMode() && targetDir) {
appender("FULL_STACKTRACE", FileAppender) {
file = "${targetDir}/stacktrace.log"
append = true
encoder(PatternLayoutEncoder) {
pattern = "%level %logger - %msg%n"
}
}
logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false)
}