ofir vainshtein has uploaded this change for review.
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@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 change 1234087. To unsubscribe, or for help writing mail filters, visit settings.