View Issue Details

IDProjectCategoryView StatusLast Update
0002035GNUnetutil librarypublic2012-11-05 17:34
ReporterChristian Grothoff Assigned ToChristian Grothoff Due Date
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 19: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 13: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 13: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-22 22: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 ModifiedUsernameFieldChange
2011-12-25 18:37Christian GrothoffNew Issue
2012-01-02 02:34Christian GrothoffStatusnew => confirmed
2012-01-06 19:53Christian GrothoffNote Added: 0005250
2012-01-28 13:34marianNote Added: 0005397
2012-01-28 13:35Christian GrothoffNote Added: 0005398
2012-01-28 13:36Christian GrothoffRelationship addedrelated to 0002122
2012-02-21 21:04Christian GrothoffTarget Version => 0.9.5
2012-06-22 08:49Christian GrothoffAssigned To => Christian Grothoff
2012-06-22 08:49Christian GrothoffStatusconfirmed => assigned
2012-06-22 08:50Christian GrothoffPrioritynone => normal
2012-06-22 22:35Christian GrothoffTarget Version0.9.5 => 0.9.4
2012-06-22 22:36Christian GrothoffNote Added: 0006136
2012-06-22 22:36Christian GrothoffStatusassigned => resolved
2012-06-22 22:36Christian GrothoffFixed in Version => 0.9.4
2012-06-22 22:36Christian GrothoffResolutionopen => fixed
2012-11-05 17:34Christian GrothoffStatusresolved => closed