Quick question,
Looking through these examples which statically assign the logging level of a program
http://www.onjava.com/pub/a/onjava/2002/06/19/log.html?page=2
http://www.vogella.com/articles/Logging/article.html
How can I dynamically set the logging level through an argument when I call my Java application
e.g.
java -jar myprogram.jar FINE
Meaning that instead of this code
logger.setLevel(Level.INFO); I could have something like
logger.setLevel(args[0]); When researching the documentation there doesnt appear to be away to set the log level with a string.
http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html