summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reports/log.rb
blob: 96f14767bc7d03ddb01395ea8c3ec13174cfb1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'puppet'

Puppet::Network::Handler.report.newreport(:log) do
    desc "Send all received logs to the local log destinations.  Usually
        the log destination is syslog."

    def process
        self.logs.each do |log|
            Puppet::Util::Log.newmessage(log)
        end
    end
end

# $Id$