Sha256: 55fa5874b1eec4ee4b6d5730c36fa2889c70c5ac1b3cc46c299739046c9a6faa
Contents?: true
Size: 648 Bytes
Versions: 22
Compression:
Stored size: 648 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
22 entries across 22 versions & 1 rubygems