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

Version Path
puppet-8.3.0 lib/puppet/reports/log.rb
puppet-8.3.0-x86-mingw32 lib/puppet/reports/log.rb
puppet-8.3.0-x64-mingw32 lib/puppet/reports/log.rb
puppet-8.3.0-universal-darwin lib/puppet/reports/log.rb
puppet-8.3.1 lib/puppet/reports/log.rb
puppet-8.3.1-x86-mingw32 lib/puppet/reports/log.rb
puppet-8.3.1-x64-mingw32 lib/puppet/reports/log.rb
puppet-8.3.1-universal-darwin lib/puppet/reports/log.rb
puppet-8.2.0 lib/puppet/reports/log.rb
puppet-8.2.0-x86-mingw32 lib/puppet/reports/log.rb
puppet-8.2.0-x64-mingw32 lib/puppet/reports/log.rb
puppet-8.2.0-universal-darwin lib/puppet/reports/log.rb
puppet-8.1.0 lib/puppet/reports/log.rb
puppet-8.1.0-x86-mingw32 lib/puppet/reports/log.rb
puppet-8.1.0-x64-mingw32 lib/puppet/reports/log.rb
puppet-8.1.0-universal-darwin lib/puppet/reports/log.rb
puppet-8.0.1 lib/puppet/reports/log.rb
puppet-8.0.1-x86-mingw32 lib/puppet/reports/log.rb
puppet-8.0.1-x64-mingw32 lib/puppet/reports/log.rb
puppet-8.0.1-universal-darwin lib/puppet/reports/log.rb