Sha256: a9a9f53cc18d147f83e1560b1741dc20df7cfcd9cf700af936e61f15d4eb2ab4
Contents?: true
Size: 426 Bytes
Versions: 17
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true require_relative '../../bolt/util/puppet_log_level' Puppet::Util::Log.newdesttype :logging do match "Logging::Logger" # Bolt log levels don't match exactly with Puppet log levels, so we use # an explicit mapping. def initialize(logger) @external_logger = logger end def handle(log) @external_logger.send(Bolt::Util::PuppetLogLevel::MAPPING[log.level], log.to_s) end end
Version data entries
17 entries across 17 versions & 1 rubygems