e9227a8230
Create new project called bbb-web-api using latest grails.
35 lines
945 B
Groovy
Executable File
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)
|
|
}
|