java n00b here...
i've got a piece of code that demonstrates simple logging using a custom format,
which looks like this:
SEVERE 27 Aug 04 1311:26.790 my severe message
WARNING 27 Aug 04 1311:26.800 my warning message
INFO 27 Aug 04 1311:26.801 my info message
Though I'm not sure how/why, the application also prints to standard out:
Aug 27, 2004 1:10:43 PM LoggerTest main
SEVERE: my severe message
Aug 27, 2004 1:10:43 PM LoggerTest main
WARNING: my warning message
Aug 27, 2004 1:10:43 PM LoggerTest main
INFO: my info message
My goal is to have standard out look the same as the logfile itself. But as I
said, I don't even know where standard out is being written to.
java.util.logging.Logger doesn't print anything out.
All help very much appreciated!
Above code modified from:
http://javaalmanac.com/egs/java.util.logging/CustomFormat.html [ August 27, 2004: Message edited by: Harry Slaughter ]