Sha256: b6a2654c6f2d58d1755bfb74306d74dd3c500f8c53ee10a7865ca4555932d115

Contents?: true

Size: 301 Bytes

Versions: 9

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module Async::Logger
  [:debug, :info, :warn, :error, :fatal].each do |name|
    define_method(name) do |*args, &block|
      info = respond_to?(:logger_info, true) ? logger_info : nil

      Console.logger.public_send(name, self, info, *args, &block)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
async-tools-0.2.10 lib/async/logger.rb
async-tools-0.2.9 lib/async/logger.rb
async-tools-0.2.8 lib/async/logger.rb
async-tools-0.2.7 lib/async/logger.rb
async-tools-0.2.6 lib/async/logger.rb
async-tools-0.2.5 lib/async/logger.rb
async-tools-0.2.4 lib/async/logger.rb
async-tools-0.2.2 lib/async/logger.rb
async-tools-0.2.1 lib/async/logger.rb