blob: 1fc6876a6e9acdb6d189cc3b22cd3ef58d4692c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'puppet/reports'
Puppet::Reports.register_report(: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|
log.source = "//#{self.host}/#{log.source}"
Puppet::Util::Log.newmessage(log)
end
end
end
|