You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Kratika Shah (Jira)" <ji...@apache.org> on 2021/08/11 09:09:00 UTC

[jira] [Created] (LOG4J2-3135) When the application logs cross the specified roll back limit, the next logs getting created does not carry the same name as the zip file name created.

Kratika Shah created LOG4J2-3135:
------------------------------------

             Summary: When the application logs cross the specified roll back limit, the next logs getting created does not carry the same name as the zip file name created.
                 Key: LOG4J2-3135
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3135
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 2.13.3
         Environment: Production, UAT, and Development
            Reporter: Kratika Shah


Open file log4j2.xml in the notepad or any editor. In the Configuration section, in the file Application configuration folder\log4j2.xml, change the Number of Files as below: -

In the same file, Go to <Properties> tag and add a line: <Property name="NumberOfFiles">20</Property> You can keep the default values as well.

When the application logs cross the specified limit, the naming convention of the logs is not as expected.

Example: The zip file gets created with the name App-2020-Jul-28-1.log and when we extract the log, the file name would be App-2020-Jul-28-28.log



--
This message was sent by Atlassian Jira
(v8.3.4#803005)