zombiecong / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server
0 stars 0 forks source link

Improve Log file handling #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Start turnserver with log to file rather than stdout option.
2.Do "ls -l /var/log/turn*" to display log file(s).
3.

What is the expected output? What do you see instead?

Log file should be closed/re-opened every 24 hours with name that includes date.

The turnserver keeps logging to the same log file forever, requiring a 
start/stop to change log files, and name includes process ID rather than date.

What version of the product are you using? On what operating system?

turnserver-1.8.1.1 
Ubuntu 12.04.1

Please provide any additional information below.

Log files older than yesterday should be compressed (like syslog).

Original issue reported on code.google.com by JMo...@IntouchHealth.com on 22 Apr 2013 at 11:35

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion.

Original comment by mom040...@gmail.com on 22 Apr 2013 at 11:43

GoogleCodeExporter commented 9 years ago
The rollover log file is implemented. The automatic compression of the old 
files is NOT implemented, to keep it simple: this is too dependent on 
particular system configuration and OS. The compression is better to be 
implemented by a system cron script or else.

Original comment by mom040...@gmail.com on 27 Apr 2013 at 1:33

GoogleCodeExporter commented 9 years ago
In 1.8.3.8, added option --syslog, to redirect the output into the system log 
and reuse system log facilities.

Original comment by mom040...@gmail.com on 8 May 2013 at 1:40

GoogleCodeExporter commented 9 years ago

Original comment by mom040...@gmail.com on 8 May 2013 at 1:59

GoogleCodeExporter commented 9 years ago
A related issue 26 - fixed.

Original comment by mom040...@gmail.com on 16 May 2013 at 11:27