srsRAN_4G icon indicating copy to clipboard operation
srsRAN_4G copied to clipboard

Allow log rotation

Open avalori1 opened this issue 3 years ago • 0 comments
trafficstars

Issue Description

Impossible to rotate logs

Setup Details

I believe is universal

Expected Behavior

When logging for long time, it would be nice to be able to rotate/split logs to limiting file size.

Actual Behaviour

At the moment if the log file is deleted, will not be re-created, and if it is rotated with logrotate, will re-grow instantaneously (I guess because srsRAN will keep writing from previous position, rather than from the end of file (which would be the beginning of an emptied file).

Steps to reproduce the problem

Start logging (e.g. report_json_enable = true in enb.conf) and attempt to rotate/delete file during run.

Additional Information

This is more an enhancement suggestion rather than a bug.

avalori1 avatar Feb 17 '22 13:02 avalori1