Bug #5082

Add syslog support

Added by Nicolas Szalay over 1 year ago. Updated over 1 year ago.

Status:Closed Start date:10/22/2010
Priority:Normal Due date:
Assignee:R.I. Pienaar % Done:

0%

Category:Core
Target version:1.1.0
Keywords:syslog logging log Affected mCollective version:
Branch:syslog
Votes: 1

Description

Please add syslog support for mcollective. A first implementaion is available here : http://github.com/rottenbytes/marionette-collective/tree/syslog

History

Updated by R.I. Pienaar over 1 year ago

  • Target version set to 1.1.0

Updated by R.I. Pienaar over 1 year ago

  • Status changed from Unreviewed to Closed
  • Assignee set to R.I. Pienaar

I’ve had a look through this code and it more or less doesn’t do what we want at all.

I’ve totally reworked logging to be pluggable and create a new syslog plugin.

You can now configure the logging plugin to use using the new logging_type configuration option that can be either file or syslog.

New logging types can easily be added without having to worry about any of the complex stuff like figuring out the next level for cycling etc the base class takes care of all of that.

The interface from the outside – the old log class – has not changed

This has been checked into master and 1.1.0 will have both file and syslog support

bff7d0c (6 files in 4 dirs): http://bit.ly/fu1rqT

Also available in: Atom PDF