You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The addition of a toggled global option within the config file to make logging friendly to logrotate syslog-styled logs. The option within the config.json would be a global option called syslogFriendly as a boolean.
What would this request do exactly? If syslogFriendly is set to true, a new function would be utilized within the segment of code above.
The file_name directive would become trunk-recorder.log while respecting config.log_dir and config.log_file string and boolean respectively.
The log would have no date-time prefix due to # 1 (ex; 07-09-2023_0516_00.log).
No built-in log rotation would occur. That would be on logrotate to truncate the current log file.
TrunkRecorder must check for file existence when writing to trunk-recorder.log - as such, SIGHUP or another signal would need to be used and captured on Trunk-Recorders' end.
This code addition would likely require the addition of text_file_backend::rotate_file() from boost when a signal is utilized.
The text was updated successfully, but these errors were encountered:
This issue pertains to this segment of main.cc:
trunk-recorder/trunk-recorder/main.cc
Lines 167 to 174 in b303615
The addition of a toggled global option within the config file to make logging friendly to logrotate syslog-styled logs. The option within the config.json would be a global option called
syslogFriendly
as a boolean.What would this request do exactly? If
syslogFriendly
is set to true, a new function would be utilized within the segment of code above.file_name
directive would becometrunk-recorder.log
while respectingconfig.log_dir
andconfig.log_file
string and boolean respectively.07-09-2023_0516_00.log
).trunk-recorder.log
- as such,SIGHUP
or another signal would need to be used and captured on Trunk-Recorders' end.This code addition would likely require the addition of
text_file_backend::rotate_file()
from boost when a signal is utilized.The text was updated successfully, but these errors were encountered: