Does grails support logging from the src/java classes?
Posted
by
rainyday
on Stack Overflow
See other posts from Stack Overflow
or by rainyday
Published on 2011-01-17T11:20:50Z
Indexed on
2011/01/17
11:53 UTC
Read the original article
Hit count: 151
I have a grails app (v 1.1.2) the logging is working fine from the groovy classes, but I can't get it to work from within a java source...
I have a class in package com.mforms.devices., it imports apache log4j, defines the logger as follows
private final org.apache.log4j.Logger loggy = Logger.getLogger(this.getClass());
then refer to it later by doing loggy.error("...")
my Config.groovy has the following
log4j = {
error 'com.mforms'
root {
error 'stdout', 'file'
additivity = true
}
}
What am I doing wrong?!?!
© Stack Overflow or respective owner