Search on this blog

Search on this blog

View Categories

2.4.2.2 Wildfly Logging Configuration

1 min read


In WildFly (including version 37), the server logging configuration is controlled via the logging subsystem defined in the standalone.xml (or equivalent domain configuration). By default, WildFly includes handlers (e.g. console and file handlers). To reduce log noise, avoid excessive disk usage, and maintain performance, we recommend using a moderate logging level such as INFO for production systems, with DEBUG only during troubleshooting (and returning back to INFO afterward).

Steps to Edit Logging Level #

1. Go to the following directory:
YOUR_WILDFLY_HOME_DIRstandaloneconfigurationstandalone.xml
2. Open the standalone.xml file to edit its contents.

3. Locate the logging subsystem definition. It will look something like:


   

5. Verify the level name for the console-handler (within that subsystem) is INFO. Change it if necessary. For example:


   
   
       
   

6. Also check the root logger or other loggers that reference handlers:


  
  
    
    
  
  
6. Save the changes and close the file. Restart the server for changes to take effect.

Note

If you need to troubleshoot an issue you can set the level to DEBUG. Remember to return it to INFO when you are done.

Troubleshooting Logging #

If you are having trouble with this logging approach, try this alternative:

  • In

    YOUR_JBOSS_HOME_DIRstandalonedeploymentsi2b2.warWEB-INFclasseslog4j.properties

    add 

    log4j.logger.edu.harvard.i2b2=DEBUG