apache / apache/logging-log4j2

I found an error description in the document

Open
#1,883 1 comment 0 reactions 0 assignees View on GitHub
appenders:Rolling bug documentation
Dominant language
Java
Stars
3.6k
Forks
1.7k
Avg merge
21h 30m
Merged PRs (30d)
27

Description

## Description

Address:https://logging.apache.org/log4j/2.x/manual/appenders.html#log-archive-retention-policy-delete-on-rollover

In the second example of `Delete on Rollover`, 100 archives will be retained on the same hour, not day. Cause the filePattern is `"${baseDir}/$${date:yyyy-MM}/app-%d{yyyy-MM-dd-HH}-%i.log.gz"`, it will reset count to 0 at every hour.

The Original Text:

```
Below is a sample configuration that uses a RollingFileAppender with both the time and size based triggering policies, will create up to 100 archives on the same day (1-100) that are stored in a directory based on the current year and month
```

Should be corrected to: ... on the same ~~day~~ hour (1-100) ...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.