server.log created even after removing default periodic-rotating-file-handler FILE handler

Solution Verified - Updated -

Issue

  • We took a fresh copy of EAP 6.x/7.x and unzipped for the first time use.

  • There is no log directory in a fresh copy, we removed the below entries from standalone.xml file.

  • periodic-rotating-file-handler named as FILE was removed along with its respective entry from the root logger.

-------------------------------------------------------------------------
 <periodic-rotating-file-handler name="FILE" autoflush="true">
                <formatter>
                    <named-formatter name="PATTERN"/>
                </formatter>
                <file relative-to="jboss.server.log.dir" path="server.log"/>
                <suffix value=".yyyy-MM-dd"/>
                <append value="true"/>
            </periodic-rotating-file-handler>
-------------------------------------------------------------------------
    <handler name="FILE"/>
-------------------------------------------------------------------------
  • We started Jboss EAP instance using standalone.sh script and checked the log directory, the server.log file was created on the first iteration.

  • However, when we stopped the Jboss process and started again (deleted the logs directory before second restart), the server.log wasn't created anymore.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content