aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2020-05-29 16:52:32 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2020-05-29 16:52:32 +0200
commite82d130bd9dcdad7849c3251623897cd52414d6c (patch)
treefcc5ac8f0f146e617ae72729ae589edf9dda68b9
parente42c8272caca5cf713f8c73f7c702a8ad7057f39 (diff)
downloadembedlog-e82d130bd9dcdad7849c3251623897cd52414d6c.tar.gz
embedlog-e82d130bd9dcdad7849c3251623897cd52414d6c.tar.bz2
embedlog-e82d130bd9dcdad7849c3251623897cd52414d6c.zip
man/el_option.3: add man for EL_FROTATE_NUMBER option
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--man/el_option.335
1 files changed, 35 insertions, 0 deletions
diff --git a/man/el_option.3 b/man/el_option.3
index f2fdfa9..0201f5b 100644
--- a/man/el_option.3
+++ b/man/el_option.3
@@ -529,6 +529,41 @@ Input parameter is less than 0
. RE
.RE
.PP
+.BI "EL_FROTATE_SYMLINK (" int " enable)"
+.RS
+When
+. B EL_FROTATE_NUMBER
+is bigger than 0, this option is enabled and program runs on UNIX,
+. B embedlog
+will create symlink file in the same directory as rest of the logs with base
+name of
+. I path
+that is passed to
+. BR EL_FPATH .
+So if "/var/log/program/program.log" path is passed, after some time more
+or less this file structure will be generated
+. PP
+. nf
+ /var/log/program/program.log.0
+ /var/log/program/program.log.1
+ /var/log/program/program.log.2
+ /var/log/program/program.log.3
+ /var/log/program/program.log -> program.log.3
+. fi
+. PP
+Symlink will always point to file directly in the same directory.
+Symlink file will always point to most recent log file. This option
+is enabled by default.
+. PP
+. B ERRORS
+. RS
+. B EINVAL
+. RS
+Input parameter is not 0 or 1
+. RE
+. RE
+.RE
+.PP
.BI "EL_FROTATE_SIZE (" long " size)"
.RS
This defines