• Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging to a file  RSS feed

 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the logging mechanism built into thr 1.4 JVM.

I need to log to a non-default location. However, the following code seems to log to the console in addition to the file. Why is it logging to the console? I don't want it to!



The following is prited to the console:



While the log file contains the following XML:
 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding


to disable the handler-hierarchy does the trick but feels heavy-handed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!