WildFly 8 Registration Levels

How to change the logging levels of WildFly 8, in particular server.log. I currently suspect that they default to INFO and would like to change it to Debug or Error.

For reference, I studied these articles.

https://docs.jboss.org/author/display/WFLY8/Logging+Configuration

https://docs.jboss.org/author/display/WFLY8/How+To

And suspect it is right;

<subsystem xmlns="urn:jboss:domain:logging:2.0"> <console-handler name="CONSOLE"> <level name="DEBUG"/> <formatter> <named-formatter name="COLOR-PATTERN"/> 
+5
source share
2 answers

By default, the console-handler parameter is set to INFO , and the FILE handler does not have a set of levels. The root-logger parameter is also set to INFO .

The instructions on the How to Link page are for you to add a new registrar through the CLI and assign a level to it. If you must add a new logger at the DEBUG level, then server.log will receive these log messages written on it.

If you want to change the root-logger to see DEBUG messages for all unregistered logisticians, you can run the following command.

 /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG) 

If you want to also see messages on the console, you need to change the level on the handler.

 /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG) 

I would not advocate the use of XML. Using a management interface such as the CLI or the web console is an appropriate way to change server settings.

+6
source

Just change the level of the root registrar and console logger. For the first shot, this should work.

+1
source

Source: https://habr.com/ru/post/1204274/


All Articles