R
Rhino
Can anyone help a logging newbie with a question?
I am just trying the logger classes in 1.4.1 for the first time and I don't
see this answered in the Lgging overview or in the Logging API itself.
I've added some logging logic to one of my programs and created a single
FileHandler for the logger to use. I did not create a console handler. When
I run my program, the logging that I did in the program appears just fine in
the file specified for the FileHandler but it also appears on my console
where I don't want it. I thought perhaps the logger was logging to a console
handler by default but when I tried logger.getHandlers() there is only one
handler, the FileHandler. How are my log messages winding up in the console
and how can I get them to appear only in the Handlers that are added to my
logger, the FileHandler in this case?
Rhino
I am just trying the logger classes in 1.4.1 for the first time and I don't
see this answered in the Lgging overview or in the Logging API itself.
I've added some logging logic to one of my programs and created a single
FileHandler for the logger to use. I did not create a console handler. When
I run my program, the logging that I did in the program appears just fine in
the file specified for the FileHandler but it also appears on my console
where I don't want it. I thought perhaps the logger was logging to a console
handler by default but when I tried logger.getHandlers() there is only one
handler, the FileHandler. How are my log messages winding up in the console
and how can I get them to appear only in the Handlers that are added to my
logger, the FileHandler in this case?
Rhino