Sha256: 3f15cb2ca184a5990258a8141173c4b3d6578f74d52ec9bc39e254f8ca2c5c29
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true module Prefab class InternalLogger < Logger def initialize(path, logger) @path = path @logger = logger end def debug(progname = nil) @logger.log_internal yield, @path, progname, DEBUG end def info(progname = nil) @logger.log_internal yield, @path, progname, INFO end def warn(progname = nil) @logger.log_internal yield, @path, progname, WARN end def error(progname = nil) @logger.log_internal yield, @path, progname, ERROR end def fatal(progname = nil) @logger.log_internal yield, @path, progname, FATAL end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prefab-cloud-ruby-0.21.0 | lib/prefab/internal_logger.rb |