Here is Netbeans logging automatically inserts into try catch blocks
try { ... throw new MyException(); ... } catch (MyException ex) { Logger.getLogger(MyClass.class.getName()).log(Level.SEVERE, null, ex); }
Well written to the Weldfly log (and earlier to the Glassfish log).
Of course, anything can happen, but it is unlikely that it will work differently on Tomcate.
Maybe the filter (or Level.SEVERE it is called exactly there) is set to ignore logs for various parameters: error level - Level.SEVERE WARNIG INFO etc., subsystem - getLogger(String subsystem) parameter getLogger(String subsystem)
By the way, the Tomcat manual says:
This is a java.util.logging implementation of the system. The Apache Tomcat startup scripts (for example, jsvc, or running Tomcat from within an IDE) can be used.
If you run native scripts, then the logging system java.util.logging enabled automatically. And if you run from IDE, then you need to tweak something somewhere