I got confused by a weird problem. I have a class that used Log4j, and I could do something like:
LOGGER.log(Level.SEVERE, "This is a message");
And I get the output as follows:
SEVERE: This message
I replaced it with the SLF4J logger for consistency with the rest of the application:
LOGGER.error("This is a message.");
But now it is registered at the INFO level:
INFO: 2012-01-23 16: 50: 43,306 [http-thread-pool-8080 (3)] ERROR com.mycompany.MyClass is a message
I expected this to be registered at the ERROR level (SLF4J does not seem to have levels above this).
Any idea what is going on? Is this the default value? The application is quite complicated, so I wonβt be surprised if this has changed somewhere, but where can I find it to change it?
I use Glassfish if this could be related.
source share