extends java.util.logging.Logger not working
问题 I want to extend the java.util.logging.Logger class. I have the following code. I am "forcing an error" in our app and the class I created is not being called. Here is the error I am generating on purpose but it doesn't go in the code I wrote: //Generate error to test the logger String[] myStringArray = new String[3]; String test; test = myStringArray[5]; I also tried this but it still doesn't go in my code even if I have the same function definition: logger.log(Level.FINE, "test my logger");