Here is an example of the result:
package org.geotools.data.ows;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.geotools.util.logging.Logging;
public class Foo {
private static final Logger LOGGER = Logging.getLogger(Foo.class);
static void example(){
try {
throw new Throwable();
} catch (Throwable e) {
LOGGER.log(Level.FINER, e.getMessage(), e);
}
}
}
Jody
On 20/03/2010, at 9:36 PM, Jody Garnett wrote:
> I went to update the code template to have this years date; and tried my hand
> at including the boiler plate logger code. I even learned something; Andrea
> pointed out that using the class to construct your logger survives
> refactoring in ways a package string never would
> <codetemplates.xml>
>
> Feedback? Is this a good idea?
>
> Jody
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel