summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2014-07-02 10:41:12 +0200
committerChristophe Romain <christophe.romain@process-one.net>2014-07-02 23:46:54 +0200
commit9265720f923abfb97336a6ad1cd41287772aa728 (patch)
tree601dc6bf98992c920f10a3dd61b4dde96bf400a3 /doc
parentNew option support: log_rotate_count (diff)
add ability to rotate logs on given date condition
Diffstat (limited to 'doc')
-rw-r--r--doc/guide.tex14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/guide.tex b/doc/guide.tex
index 52400796..ba734986 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -6058,12 +6058,20 @@ The exact value is controlled by \term{log\_rotate\_size} option.
The syntax is:
\begin{description}
\titem{log\_rotate\_size: N} Where N is the maximum size of a log file in bytes.
- The default value is 104857600 (10Mb).
+ The default value is 10485760 (10Mb).
+\end{description}
+
+\ejabberd{} can also rotates the log files at given date interval.
+The exact value is controlled by \term{log\_rotate\_date} option.
+The syntax is:
+\begin{description}
+ \titem{log\_rotate\_date: D} Where D is a string with syntax is taken from the syntax newsyslog uses in newsyslog.conf.
+ The default value is \term{""} (no rotation triggered by date).
\end{description}
However, you can rotate the log files manually.
-For doing this, set \term{log\_rotate\_size} option to some absurdly high value, then,
-when you need to rotate the files, rename and then reopen them.
+For doing this, set \term{log\_rotate\_size} option to 0 and \term{log\_rotate\_date}
+to empty list, then, when you need to rotate the files, rename and then reopen them.
The ejabberdctl command \term{reopen-log}
(please refer to section \ref{ectl-commands})
reopens the log files,