View Issue Details

IDProjectCategoryView StatusLast Update
0002035GNUnetutil librarypublic2012-11-05 18:34
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version0.9.0 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002035: revive build-in support for log rotation
DescriptionIf services are run with "-l", we write logs. In that case, we should support some form of log rotation to discard old logs eventually.
TagsNo tags attached.

Relationships

related to 0002122 closedChristian Grothoff log filenames are in wtf-endian 

Activities

Christian Grothoff

2012-01-06 20:53

manager   ~0005250

We had support for log-rotation in 0.8.1. So the code there might be useful, but it is not required that the implementation works the same way again.

The basic idea is to enhance the logger with the ability to rename the logfile (i.e. daily) and to delete old logfiles (i.e. after a week or so). Basically we should make sure that nothing bad happens if someone runs GNUnet forever without looking at it and cleaning up.

marian

2012-01-28 14:34

reporter   ~0005397

I think it's better not to implement an own log rotation system but instead just ship a logrotate profile.

At least it should be made sure that the own log rotation can be turned off and logrotate be used (including thinks like that it should be possible to HUP gnunetd to reopen the log file)

Christian Grothoff

2012-01-28 14:35

manager   ~0005398

Being able to turn it off and providing a logrotate profile is fine. However, there are systems (W32, embedded) that don't come with logrotate and we should provide a reasonable alternative for those systems.

Christian Grothoff

2012-06-23 00:36

manager   ~0006136

Added code to allow users to freely specify desired date format (via strftime) to log file names in SVN 22215. Logs are now automatically rotated after the format has changed to a different file name 4 times (so, for example, if %Y-%m-%d is used in the log file name, after 4 days the first days logs will be deleted).

Issue History

Date Modified Username Field Change
2011-12-25 19:37 Christian Grothoff New Issue
2012-01-02 03:34 Christian Grothoff Status new => confirmed
2012-01-06 20:53 Christian Grothoff Note Added: 0005250
2012-01-28 14:34 marian Note Added: 0005397
2012-01-28 14:35 Christian Grothoff Note Added: 0005398
2012-01-28 14:36 Christian Grothoff Relationship added related to 0002122
2012-02-21 22:04 Christian Grothoff Target Version => 0.9.5
2012-06-22 10:49 Christian Grothoff Assigned To => Christian Grothoff
2012-06-22 10:49 Christian Grothoff Status confirmed => assigned
2012-06-22 10:50 Christian Grothoff Priority none => normal
2012-06-23 00:35 Christian Grothoff Target Version 0.9.5 => 0.9.4
2012-06-23 00:36 Christian Grothoff Note Added: 0006136
2012-06-23 00:36 Christian Grothoff Status assigned => resolved
2012-06-23 00:36 Christian Grothoff Fixed in Version => 0.9.4
2012-06-23 00:36 Christian Grothoff Resolution open => fixed
2012-11-05 18:34 Christian Grothoff Status resolved => closed