ofir vainshtein has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1234087?usp=email )
Change subject: Add log rotation functionality to Ganesha.
......................................................................
Add log rotation functionality to Ganesha.
This change introduces the ability to rotate Ganesha log files based on size and/or time.
A new "Rotate" block can be added within the "LOG" section of the
configuration. The options are:
- size_kb: Rotate when the log file size exceeds this value in KB.
- time_sec: Rotate when the time since the last rotation exceeds this value in seconds.
When rotation occurs, the current log file is renamed to <log_file_path>.old.
Change-Id: I08f410b615874eadcd1a740ad79d87b8c6aae772
Signed-off-by: Ofir Vainshtein <ofirvins(a)google.com>
---
M src/doc/man/ganesha-log-config.rst
M src/log/log_functions.c
2 files changed, 134 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/87/1234087/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1234087?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I08f410b615874eadcd1a740ad79d87b8c6aae772
Gerrit-Change-Number: 1234087
Gerrit-PatchSet: 1
Gerrit-Owner: ofir vainshtein <ofirvins(a)google.com>