Search code examples
jboss

How to disable jboss 7.1.1 AS standalone.log file in log folder on windows


Our JBoss 7.1.1 AS app server creates to files in the standalone log folder with incomplete startup messages in server.log and standalone.log.

The standalone.log grows so large and degrades the performance of the application.

How should we disable this standalone.log in the /standalone/log folder.


Solution

  • By default Jboss handles appends logs in multiple files (standalone.logs,server.logs) you can deactivate the log handler using the CLI :

    /subsystem=logging/logging=root-logger:remove-handler(name=CONSOLE)
    

    The Jboss community allways recommand to configure the logging subsystem to match your needs in the app ( logging levels, properties, replication...) and configure the logging.properties file with the specific app properties.

    here is an example of the logging.properties file

    Jboss logging Doc