Sha256: 637ce3d195e0a30872437c2c3b946634590b03ecb28c47677c182a51be5b9385

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

module Arli
  module Logger
    def self.included(base)
      base.instance_eval do
        %i(debug info error warn fatal).each do |level|
          define_method "_#{level}" do |*args|
            Arli.logger.send(level, *args) if Arli.logger
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arli-0.5.1 lib/arli/logger.rb