ionutab
2014-05-22 20:44:22 UTC
Hello,
I have successfully managed to run junit tests of my Grails app in Intellij
Idea.
However I cannot logg correctly.
Print works, yet no matter what configuration I make in Config.groovy I do
not see any logging information in the console output.
this is my log4j configuration
// log4j configuration
log4j = {
// Example of changing the log pattern for the default console appender:
//
//appenders {
// console name:'stdout', layout:pattern(conversionPattern: '%c{2}
%m%n')
//}
appenders {
console name: 'stdout', layout: pattern(conversionPattern:
'%d{yyyy-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L %x - %m%n')
}
error 'org.codehaus.groovy.grails.web.servlet', // controllers
'org.codehaus.groovy.grails.web.pages', // GSP
'org.codehaus.groovy.grails.web.sitemesh', // layouts
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
'org.codehaus.groovy.grails.web.mapping', // URL mapping
'org.codehaus.groovy.grails.commons', // core /
classloading
'org.codehaus.groovy.grails.plugins', // plugins
'org.codehaus.groovy.grails.orm.hibernate', // hibernate
integration
'org.springframework',
'org.hibernate',
'net.sf.ehcache.hibernate'
debug 'grails.app.controllers'
'hibernate.SQL'
}
Thank you.
--
View this message in context: http://grails.1312388.n4.nabble.com/Correct-Log4j-configuration-for-JUnit-tp4656996.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I have successfully managed to run junit tests of my Grails app in Intellij
Idea.
However I cannot logg correctly.
Print works, yet no matter what configuration I make in Config.groovy I do
not see any logging information in the console output.
this is my log4j configuration
// log4j configuration
log4j = {
// Example of changing the log pattern for the default console appender:
//
//appenders {
// console name:'stdout', layout:pattern(conversionPattern: '%c{2}
%m%n')
//}
appenders {
console name: 'stdout', layout: pattern(conversionPattern:
'%d{yyyy-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L %x - %m%n')
}
error 'org.codehaus.groovy.grails.web.servlet', // controllers
'org.codehaus.groovy.grails.web.pages', // GSP
'org.codehaus.groovy.grails.web.sitemesh', // layouts
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
'org.codehaus.groovy.grails.web.mapping', // URL mapping
'org.codehaus.groovy.grails.commons', // core /
classloading
'org.codehaus.groovy.grails.plugins', // plugins
'org.codehaus.groovy.grails.orm.hibernate', // hibernate
integration
'org.springframework',
'org.hibernate',
'net.sf.ehcache.hibernate'
debug 'grails.app.controllers'
'hibernate.SQL'
}
Thank you.
--
View this message in context: http://grails.1312388.n4.nabble.com/Correct-Log4j-configuration-for-JUnit-tp4656996.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email