Sha256: 847a738353ada5a7419632f397a4231fd4ecb618bd022ca8e731a4620cd95627

Contents?: true

Size: 454 Bytes

Versions: 13

Compression:

Stored size: 454 Bytes

Contents

require "rabbit/utils"

module Rabbit
  module Logger
    extend Utils

    dir = ::File.join("rabbit", "logger")
    require_files_under_directory_in_load_path(dir)

    class << self
      def types
        collect_classes_under_module(self)
      end

      def default
        if Utils.support_console_output? or !Logger.const_defined?(:GUI)
          Logger::STDERR.new
        else
          Logger::GUI.new
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rabbit-2.1.2 lib/rabbit/logger.rb
rabbit-2.1.1 lib/rabbit/logger.rb
rabbit-2.1.0 lib/rabbit/logger.rb
rabbit-2.0.9 lib/rabbit/logger.rb
rabbit-2.0.8 lib/rabbit/logger.rb
rabbit-2.0.7 lib/rabbit/logger.rb
rabbit-2.0.6 lib/rabbit/logger.rb
rabbit-2.0.5 lib/rabbit/logger.rb
rabbit-2.0.4 lib/rabbit/logger.rb
rabbit-2.0.3 lib/rabbit/logger.rb
rabbit-2.0.2 lib/rabbit/logger.rb
rabbit-2.0.1 lib/rabbit/logger.rb
rabbit-2.0.0 lib/rabbit/logger.rb