Filter messages in JBoss Logging

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

Working with Hibernate and Oracle DB 10 g lead to a massive amount of warnings on the logs. This post demonstrates how to filter these warnings, if they don’t apply to the situation, in JBoss EAP or Wildfly.

WARN org.hibernate.loader.Loader - HHH000444: Encountered request for locking however dialect reports that database prefers locking be done in a separate select (follow-on locking); results will be locked after initial query execute

See HHH-9097 for more details. To avoid the noise, you can setup JBoss EAP or Wildfly to filter this kind of messages. Run the CLI (command line interface):


The first cli instruction will apply the filter in the console logger and the second for the periodic rotating file handler. See Filter Expressions for Logging for more details.