You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2019/06/16 21:15:19 UTC

[logging-log4j2] 02/02: (doc) Change order of fileIndex variants in manual to describe default one first.

This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit c2cf9d80ffa8e9eb368dc5de6c3ee3f5c449e1d4
Author: pazderski <pa...@askvisual.de>
AuthorDate: Mon Feb 11 13:28:06 2019 +0100

    (doc) Change order of fileIndex variants in manual to describe default one first.
---
 src/site/asciidoc/manual/appenders.adoc | 50 ++++++++++++++++-----------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/site/asciidoc/manual/appenders.adoc b/src/site/asciidoc/manual/appenders.adoc
index 43ec989..2015b77 100644
--- a/src/site/asciidoc/manual/appenders.adoc
+++ b/src/site/asciidoc/manual/appenders.adoc
@@ -2750,10 +2750,9 @@ for Java]. The pattern may also contain lookup references that can be
 resolved at runtime such as is shown in the example below.
 
 The default rollover strategy supports three variations for incrementing
-the counter. The first is the "fixed window" strategy. To illustrate how
-it works, suppose that the min attribute is set to 1, the max attribute
-is set to 3, the file name is "foo.log", and the file name pattern is
-"foo-%i.log".
+the counter. To illustrate how it works, suppose that the min attribute 
+is set to 1, the max attribute is set to 3, the file name is "foo.log", 
+and the file name pattern is "foo-%i.log".
 
 [cols=",,,",options="header",]
 |=======================================================================
@@ -2764,23 +2763,23 @@ is set to 3, the file name is "foo.log", and the file name pattern is
 |1 |foo.log |foo-1.log |During the first rollover foo.log is renamed to
 foo-1.log. A new foo.log file is created and starts being written to.
 
-|2 |foo.log |foo-1.log, foo-2.log |During the second rollover foo-1.log
-is renamed to foo-2.log and foo.log is renamed to foo-1.log. A new
-foo.log file is created and starts being written to.
+|2 |foo.log |foo-2.log, foo-1.log |During the second rollover foo.log is
+renamed to foo-2.log. A new foo.log file is created and starts being
+written to.
 
-|3 |foo.log |foo-1.log, foo-2.log, foo-3.log |During the third rollover
-foo-2.log is renamed to foo-3.log, foo-1.log is renamed to foo-2.log and
-foo.log is renamed to foo-1.log. A new foo.log file is created and
+|3 |foo.log |foo-3.log, foo-2.log, foo-1.log |During the third rollover
+foo.log is renamed to foo-3.log. A new foo.log file is created and
 starts being written to.
 
-|4 |foo.log |foo-1.log, foo-2.log, foo-3.log |In the fourth and
-subsequent rollovers, foo-3.log is deleted, foo-2.log is renamed to
-foo-3.log, foo-1.log is renamed to foo-2.log and foo.log is renamed to
-foo-1.log. A new foo.log file is created and starts being written to.
+|4 |foo.log |foo-3.log, foo-2.log, foo-1.log |In the fourth and
+subsequent rollovers, foo-1.log is deleted, foo-2.log is renamed to
+foo-1.log, foo-3.log is renamed to foo-2.log and foo.log is renamed to
+foo-3.log. A new foo.log file is created and starts being written to.
 |=======================================================================
 
-By way of contrast, when the fileIndex attribute is set to "max" but all
-the other settings are the same the following actions will be performed.
+By way of contrast, when the fileIndex attribute is set to "min" but all
+the other settings are the same the "fixed window" strategy will be 
+performed.
 
 [cols=",,,",options="header",]
 |=======================================================================
@@ -2791,18 +2790,19 @@ the other settings are the same the following actions will be performed.
 |1 |foo.log |foo-1.log |During the first rollover foo.log is renamed to
 foo-1.log. A new foo.log file is created and starts being written to.
 
-|2 |foo.log |foo-2.log, foo-1.log |During the second rollover foo.log is
-renamed to foo-2.log. A new foo.log file is created and starts being
-written to.
+|2 |foo.log |foo-1.log, foo-2.log |During the second rollover foo-1.log
+is renamed to foo-2.log and foo.log is renamed to foo-1.log. A new
+foo.log file is created and starts being written to.
 
-|3 |foo.log |foo-3.log, foo-2.log, foo-1.log |During the third rollover
-foo.log is renamed to foo-3.log. A new foo.log file is created and
+|3 |foo.log |foo-1.log, foo-2.log, foo-3.log |During the third rollover
+foo-2.log is renamed to foo-3.log, foo-1.log is renamed to foo-2.log and
+foo.log is renamed to foo-1.log. A new foo.log file is created and
 starts being written to.
 
-|4 |foo.log |foo-3.log, foo-2.log, foo-1.log |In the fourth and
-subsequent rollovers, foo-1.log is deleted, foo-2.log is renamed to
-foo-1.log, foo-3.log is renamed to foo-2.log and foo.log is renamed to
-foo-3.log. A new foo.log file is created and starts being written to.
+|4 |foo.log |foo-1.log, foo-2.log, foo-3.log |In the fourth and
+subsequent rollovers, foo-3.log is deleted, foo-2.log is renamed to
+foo-3.log, foo-1.log is renamed to foo-2.log and foo.log is renamed to
+foo-1.log. A new foo.log file is created and starts being written to.
 |=======================================================================
 
 Finally, as of release 2.8, if the fileIndex attribute is set to "nomax"