We help IT Professionals succeed at work.

Java Util Logging

abuyusuf
abuyusuf used Ask the Experts™
on
I am using Java Util Logging as an application logger - I keep on getting the following line appended to each log file entry and it is a little annoying - is there anyway to avoid it ?

Thanks
Aug 4, 2011 2:39:45 PM << Full Class Name >>> << Method Name >>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Awarded 2011
Awarded 2011

Commented:
Awarded 2011
Awarded 2011
Commented:
It looks like the last answer (avccepted solution) from
http://stackoverflow.com/questions/2950704/java-util-logging-how-to-suppress-date-line 
should work:
Give it a try:

   for(Handler iHandler:log.getParent().getHandlers())
        {
        log.getParent().removeHandler(iHandler);
        }