Sha256: 9f0892d524fed6ed6863898c8a7afbaf982f5f5eb2bae7d423983e2342777d66
Contents?: true
Size: 371 Bytes
Versions: 20
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true require_relative '../../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
Version data entries
20 entries across 20 versions & 1 rubygems