M
Michael T. Peterson
Hi,
I would like to customize the spew printed by the java.util.logging.Logger,
but can't really find any examples or instructions about how this may be
done. For example, the code
LogRecord record = new LogRecord( Level.INFO, "This is a
message." );
logger.log( record );
produces
Sep 8, 2003 7:15:38 PM com.mazama.utils.Trace println
INFO: This is a message.
I would like to be able to customize the output so that I may have the
Logger print the message either of 3 ways:
Sep 8, 2003 7:15:38 PM com.mazama.utils.Trace println INFO: This is a
message.
or
INFO: This is a message.
or
Sep 8, 2003 7:15:38 PM com.mazama.utils.Trace println
Thanks, in advance.
Michael
I would like to customize the spew printed by the java.util.logging.Logger,
but can't really find any examples or instructions about how this may be
done. For example, the code
LogRecord record = new LogRecord( Level.INFO, "This is a
message." );
logger.log( record );
produces
Sep 8, 2003 7:15:38 PM com.mazama.utils.Trace println
INFO: This is a message.
I would like to be able to customize the output so that I may have the
Logger print the message either of 3 ways:
Sep 8, 2003 7:15:38 PM com.mazama.utils.Trace println INFO: This is a
message.
or
INFO: This is a message.
or
Sep 8, 2003 7:15:38 PM com.mazama.utils.Trace println
Thanks, in advance.
Michael