diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2020-05-28 15:24:41 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2020-05-28 15:24:41 +0200 |
commit | 1635b4b1f201c7673ddce45c8d5f6bdaafc61cf8 (patch) | |
tree | 0222b06f6e8779accf3eae66a41cb0594df29c30 | |
parent | 2f2ae63ea8047436f2dd2fb5335b16929ac94ffe (diff) | |
download | embedlog-1635b4b1f201c7673ddce45c8d5f6bdaafc61cf8.tar.gz embedlog-1635b4b1f201c7673ddce45c8d5f6bdaafc61cf8.tar.bz2 embedlog-1635b4b1f201c7673ddce45c8d5f6bdaafc61cf8.zip |
src/el-file.c: add note to self about ordering
Took me 10 minutes to figure out why oldest file has suffix .0
and newest a non deterministic number.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r-- | src/el-file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/el-file.c b/src/el-file.c index 34d2cbc..675b74f 100644 --- a/src/el-file.c +++ b/src/el-file.c @@ -329,6 +329,9 @@ int el_file_open * Oldest file has suffix .0 while the newest one has * suffix .${frotate_number} (or less if there are less * files). + * + * Reason for such order is so user could do `cat logs.*` + * and in result concatenate all logs in order. */ for (i = el->frotate_number - 1; i >= 0; --i) |