Heck, never mind.
I had logging disabled in my gwt.xml file, and apparently that still
allows logging to happen with a default formatter in Eclipse. Once I
enabled logging, the handlers got installed and my messages are
formatted (almost) the way I want them.
[slaps head, goes looking for more c
On Dec 27 2010, 12:11 pm, Mauro Bertapelle
wrote:
> // initialize logger with custom formatter
> static {
> Handler handlers[] = Logger.getLogger("").getHandlers();
> for (Handler handler : handlers) {
> handler.setFormatter(new CustomFormatter(false));
> }
> }
>
First you need to supply a custom formatter. Look at
com.google.gwt.logging.client.TextLogFormatter for a simple example or, this
is an example of a formatter that format log message in a single line:
public class CustomFormatter extends FormatterImpl {
private boolean showStackTraces;
priva
GWT uses standard java.util.logging, which lets you specify a custom
formatter in logging.properties. Perhaps this will help:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rtrb_createformatter.html
/dmc
On Fri, Dec 24, 2010 at 10
I am using the new Logging feature introduced in GWT 2.1.
I get this annoying line in my logs, that keeps repeating in every
other line :
"24-Dec-2010 6:58:42 PM java.util.logging.LogManager$RootLogger log"
INFO : what i am interested in
24-Dec-2010 6:58:42 PM java.util.logging.LogManager$RootLog