Project

General

Profile

Actions

Todo #8350

closed

Remove clog in favor of standard syslogd or syslogd alternative with rotation via newsyslog or logrotate

Added by Jim Pingle over 6 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Logging
Target version:
Start date:
08/30/2019
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Plus Target Version:
Release Notes:

Description

Maintaining clog patches and dealing with clog file format/output is cumbersome and not a strict requirement now that we have moved beyond the age of embedded/nanobsd

We should remove our dependence on clog and use plain text log files which can be rotated and archived and still maintain a small disk footprint, while not being strictly/exactly limited like clog.

Important points:

  • User log reading/searching must look back in archives for recent messages since rotating will remove them from the current active log file.
  • Log size/rotation schedule/number of past archived log files should be configurable, perhaps more. Log size is already there from clog settings, but for example newsyslog has several options for configuring when rotation happens and what it does at that time (e.g. compress with bzip)
  • Alternatives to syslog (e.g. syslog-ng, rsyslog) could be considered provided there is no loss of functionality
  • Functions dealing with clog files will need replaced/rewritten/removed -- probably not a significant effort since the option already exists today to use plain text logging, may only be a matter of removing dead code

Subtasks 7 (0 open7 closed)

Todo #9711: Add GUI options to control log rotationResolvedJim Pingle08/30/2019

Actions
Todo #9712: Add code for packages to set their own log rotation parametersResolvedJim Pingle08/30/2019

Actions
Todo #9713: Review log rotation behaviorResolvedJim Pingle08/30/2019

Actions
Todo #9714: Add page to view "other" logsResolvedJim Pingle08/30/2019

Actions
Bug #9715: Call to undefined function sort_related_log_filesResolvedJim Pingle08/31/2019

Actions
Bug #9730: newsyslog cron job not present after every upgradeResolvedJim Pingle09/06/2019

Actions
Todo #9734: Re-evaluate log size, line defaults, and limitsResolvedJim Pingle09/08/2019

Actions
Actions

Also available in: Atom PDF