|
Java Logging
Hi All,
I have a problem using java logging. I have currently set the handler to FileHandler to redirect all my logs to a log file. And in some cases I have to redirect that particular log to the java console. I couldn't able to do that even if I reset the handler to ConsoleHandler.
How do I manage to use two different handlers alternatively when required? That is sometimes I might require to redirect the log to java console and in some cases to a log file.
If anybody knows the solution please reply me.
I appreciate your time.
Thanks,
-- Vignesh.
|