Sha256: cc23c5f5422cf50bb165ab73bf5138ac569bd9451a103feab464d752fe65d10c

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

require 'lightchef'
require 'logger'

module Lightchef
  module Logger
    def self.logger
      @logger ||= ::Logger.new($stdout)
    end

    def self.logger=(l)
      @logger = l
    end

    def self.method_missing(method, *args, &block)
      logger.public_send(method, *args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lightchef-0.0.2 lib/lightchef/logger.rb
lightchef-0.0.1 lib/lightchef/logger.rb