View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002035 | GNUnet | util library | public | 2011-12-25 19:37 | 2012-11-05 18:34 |
Reporter | Christian Grothoff | Assigned To | Christian Grothoff | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 0.9.0 | ||||
Target Version | 0.9.4 | Fixed in Version | 0.9.4 | ||
Summary | 0002035: revive build-in support for log rotation | ||||
Description | If services are run with "-l", we write logs. In that case, we should support some form of log rotation to discard old logs eventually. | ||||
Tags | No tags attached. | ||||
related to | 0002122 | closed | Christian Grothoff | log filenames are in wtf-endian |
|
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. |
|
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) |
|
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. |
|
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). |
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 |