F
Frank
I have a command line application, where I am trying to log all errors
to a file, and keep the commandline quiet.
In certain instances, I am getting some exceptions with
java.lang.Enum.valueOf (eg: java.lang.IllegalArgumentException: No enum
const class org....). The exception is being logged into my file just
fine. Problem is, it's also appearing on command line.
To control logging, I'm pretty much using a properties file based off
this example:
http://www.exampledepot.com/egs/java.util.logging/Props.html
With these changes:
# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level = INFO
java.util.logging.ConsoleHandler.level = OFF
Any ideas on what else I can do to surpress the enum errors from the
command line?
to a file, and keep the commandline quiet.
In certain instances, I am getting some exceptions with
java.lang.Enum.valueOf (eg: java.lang.IllegalArgumentException: No enum
const class org....). The exception is being logged into my file just
fine. Problem is, it's also appearing on command line.
To control logging, I'm pretty much using a properties file based off
this example:
http://www.exampledepot.com/egs/java.util.logging/Props.html
With these changes:
# Set the default logging level for new FileHandler instances
java.util.logging.FileHandler.level = INFO
java.util.logging.ConsoleHandler.level = OFF
Any ideas on what else I can do to surpress the enum errors from the
command line?