Hi Rick, welcome to CodeRanch.
I first edited lib/logging.properties to make .level= MY_LEVEL. My test program prints "true".
This implies that after you make a new instance of your subclass, the Level class will be able to return your custom Level instance using the parse() method.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Joined: Jun 06, 2011
Thank you for you reply Stephan,
I've setup a test similar to yours but I keep getting the following error when I execute the test class
$ java -client -Djava.util.logging.config.file=./app.properties logtest
Bad level value for property: .level
doesn't there have to be something in the config properties to Identify my custom level class ??
This is probably because you are using the logging mechanism (by using Logger.getLogger()) before you use the TestLevel class, giving it no time to register the name through the superclass constructor.