Sha256: 65df8f9185fa7ab3c0bbb5f44526afae13ab6860c3c20f4ee70e30abe873ceaf

Contents?: true

Size: 627 Bytes

Versions: 13

Compression:

Stored size: 627 Bytes

Contents

require 'logger'
require 'roqua/logging/roqua_logging_railtie' if defined?(Rails)
require 'roqua/support/instrumentation'
require 'roqua/support/log_wrapper'
require 'roqua/support/errors'
require 'roqua/support/stats'

module Roqua
  class << self
    def appname
      @appname
    end

    def appname=(name)
      @appname = name
    end

    def logger
      @logger || raise('Roqua.logger not yet initialized')
    end

    def logger=(logger)
      @logger = LogWrapper.new(logger)
    end

    def stats
      @stats ||= ::Roqua::Support::Stats.new
    end

    def stats=(stats)
      @stats = stats
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
roqua-support-0.4.6 lib/roqua/support.rb
roqua-support-0.4.5 lib/roqua/support.rb
roqua-support-0.4.4 lib/roqua/support.rb
roqua-support-0.4.3 lib/roqua/support.rb
roqua-support-0.4.2 lib/roqua/support.rb
roqua-support-0.4.1 lib/roqua/support.rb
roqua-support-0.4.0 lib/roqua/support.rb
roqua-support-0.3.5 lib/roqua/support.rb
roqua-support-0.3.4 lib/roqua/support.rb
roqua-support-0.3.3 lib/roqua/support.rb
roqua-support-0.3.2 lib/roqua/support.rb
roqua-support-0.3.1 lib/roqua/support.rb
roqua-support-0.3.0 lib/roqua/support.rb