In standalone.xml
we have the following:
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
How can I add something like:
<level name="MYLEVEL"/>
Is this possible to do in WildFly 10 Server?
The standard
java.util.logging.Level
used by theLogManager
allows you to pass an integer value of your custom level. For example, if yourMYLEVEL
has a value of2000
you can use the number instead of the name.To use a custom level by the level name you have to include that binary in the boot class path.