How to disable the logging using the attribute enabled in custom handler.

Solution Unverified - Updated -

Issue

  • How to disable the logging using the attribute enabled="false" in custom handler.
<custom-handler name="DB" class="com.dblogger.JdbcLogger" module="com.dblogger" enabled="false">
  <level name="INFO"/>
    :
</custom-handler>
  • Disabling a custom-handler for logging doesn't work for JBoss EAP 6.
  • Custom Handler not get disabled from jconsole?What could be the cause of the issue?
  • We have a custom handler for DB logging configured on standalone.xml. When we tried to disable it via jconsole, It is changing in standalone.xml to enabled="false".But actually its not stopping logging.
jboss-as>>logging>>customlogger>>operations>>disable

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content