Issue #6522 has been reported by donavan m.
----------------------------------------
Feature #6522: Enable additional destinations & termini via plugins
https://projects.puppetlabs.com/issues/6522
Author: donavan m
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
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:
<pre>
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
</pre>
[1]
http://groups.google.com/group/puppet-dev/browse_thread/thread/e50eccaf00375e72
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.