Skip to content
Advertisement

Change log level in jboss 7.1 without restarting the server using web consle interface

I want to change log level in standalone.xml using web console interface in jboss 7.1.1 without stopping the server.Same thing,I am able to do using CLI commonds as follows:

[standalone@localhost:9999/]/subsystem=logging/console-handler=CONSOLE:write-           attribute(name=level,value=<<log level value>>)

My logging subsystem in standalone.xml is as follows:

 <subsystem xmlns="urn:jboss:domain:logging:1.1">
        <console-handler name="CONSOLE">
            <level name="DEBUG"/>
            <formatter>
                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
            </formatter>
        </console-handler>
        <periodic-rotating-file-handler name="FILE">
            <formatter>
                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
            </formatter>
            <file relative-to="jboss.server.log.dir" path="server.log"/>
            <suffix value=".yyyy-MM-dd"/>
            <append value="true"/>
        </periodic-rotating-file-handler>
        <logger category="com.arjuna">
            <level name="TRACE"/>
        </logger>
        <logger category="org.apache.tomcat.util.modeler">
            <level name="ERROR"/>
        </logger>
        <logger category="sun.rmi">
            <level name="ERROR"/>
        </logger>
        <logger category="jacorb">
            <level name="ERROR"/>
        </logger>
        <logger category="jacorb.config">
            <level name="ERROR"/>
        </logger>

Please suggest !

Advertisement

Answer

Try with following steps:

  1. Enter to web console (http://<host>:9990)
  2. Select Profile
  3. Select Core/Logging
  4. Select Tab Handler
  5. Edit and change the log level

See image below.

enter image description here

Advertisement