Sha256: 8c3506a99e74cadaf271291e7fde1154b654e988bf6c099a21b2d16a407c228b
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
# frozen_string_literal: true module Facter class LegacyLogger def initialize @stdout_logger = Logger.new(STDOUT) @stderr_logger = Logger.new(STDERR) end def level=(value) @stdout_logger.level = @stderr_logger.level = value end def formatter=(format) @stdout_logger.formatter = format @stderr_logger.formatter = format end def info(msg) @stdout_logger.info(msg) end def debug(msg) @stderr_logger.debug(msg) end def error(msg) @stderr_logger.error(msg) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.8.pre | lib/framework/logging/legacy_logger.rb |
facter-4.0.7.pre | lib/framework/logging/legacy_logger.rb |