All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ugins.spring-security-core.4.0.4.source-code.logback.groovy Maven / Gradle / Ivy

import grails.util.BuildSettings
import grails.util.Environment

String defaultPattern = '%-65(%.-2level %date{HH:mm:ss.SSS} %logger{32}) - %message%n'

appender('STDOUT', ConsoleAppender) {
	encoder(PatternLayoutEncoder) {
		pattern = defaultPattern
	}
}

// logger 'grails.plugin.springsecurity', TRACE
// logger 'org.springframework.security', DEBUG
// logger 'org.hibernate.SQL', DEBUG
// logger 'org.hibernate.type.descriptor.sql.BasicBinder', TRACE

root ERROR, ['STDOUT']

File targetDir = BuildSettings.TARGET_DIR
if (Environment.developmentMode && targetDir) {

	appender('FULL_STACKTRACE', FileAppender) {
		file = "$targetDir/stacktrace.log"
		append = true
		encoder(PatternLayoutEncoder) {
			pattern = defaultPattern
		}
	}

	logger 'StackTrace', ERROR, ['FULL_STACKTRACE'], false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy