The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #6522

Enable additional destinations & termini via plugins

Added by donavan m about 3 years ago. Updated 2 months ago.

Status:AcceptedStart date:03/01/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:3.x
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/PUP-1634


Description

I’d like to add new destinations for Puppet::Util::Log. Currently this can all be done by modifying ‘puppet/util/log/destinations.rb’.

I only see Puppet::Util::Autoload.new instances for plugins in puppet/type, puppet/provider, puppet/parser/functions, & puppet/feature (?). Also mentioned in puppet-dev thread ‘Adding a Scribe log destination’[1] & #4248

My particular case is to add a new destination like:

Puppet::Util::Log.newdesttype :json do
  def handle(msg)
    message = {}
    msg.instance_variables.each {|v| message[v.sub("@","")] = msg.instance_variable_get(v) }
    puts message.to_pson
  end
end

[1] http://groups.google.com/group/puppet-dev/browse_thread/thread/e50eccaf00375e72


Related issues

Related to Puppet - Feature #4248: Load "library" plugins that are used by multiple puppet f... Accepted 07/15/2010

History

#1 Updated by James Turnbull about 3 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Nigel Kersten

#2 Updated by Nigel Kersten over 2 years ago

  • Status changed from Needs Decision to Duplicate
  • Assignee changed from Nigel Kersten to donavan m

donovan, is this really a dupe of #4248 ? Happy to re-open if not.

#3 Updated by donavan m over 2 years ago

Nigel Kersten wrote:

donovan, is this really a dupe of #4248 ? Happy to re-open if not.

It’s been a while since Ive looked at it. IIRC I opened this specifically to try and split #4248 in to two features, see comments 19 & 20. #4248 being about autoloading files from the expected paths. #6522 is for Puppet::Util::Log (and other) endpoints where Puppet::Util::Autoload isn’t called at all.

IMO they’re related but independent units of work.

#4 Updated by Nigel Kersten over 2 years ago

  • Status changed from Duplicate to Accepted
  • Assignee deleted (donavan m)
  • Target version set to 3.x

awesome. thanks.

#5 Updated by Hunter Haugen 2 months ago

Redmine Issue #6522 has been migrated to JIRA:

https://tickets.puppetlabs.com/browse/PUP-1634

Also available in: Atom PDF