ofir vainshtein has uploaded this change for review.
Add a rolling log index to Ganesha logs.
Introduces a new log format option, LOG_INDEX, which adds a monotonically increasing index to each log line. The index is a 5-digit number that wraps around at 100000. This helps in tracking the order of log messages. The super_ut configuration is updated to enable this new option.
note because index is taken before write and not under exclusive lock with it. logs are not guaranteed to appear in order in the file
Change-Id: Ieb251326238810d9c3251b36a0d40c2d4844d52d
Signed-off-by: Ofir Vainshtein <ofirvins@google.com>
---
M src/doc/man/ganesha-log-config.rst
M src/include/abstract_atomic.h
M src/log/log_functions.c
3 files changed, 45 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/86/1234086/1
To view, visit change 1234086. To unsubscribe, or for help writing mail filters, visit settings.