Sha256: 1618d081a83f0738082f3040797fff9ce3796575afbe4c55a487dc37a6e4761c
Contents?: true
Size: 371 Bytes
Versions: 8
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
8 entries across 8 versions & 1 rubygems