Sha256: 31ee1f666738997246694fd6c05e22ec32c136c44cb7c45cb4a0c14f4843a0c1

Contents?: true

Size: 1.38 KB

Versions: 10

Compression:

Stored size: 1.38 KB

Contents

require 'rubygems'
require 'active_record'
require "#{File.dirname(__FILE__)}/appstats/acts_as_appstatsable"
require "#{File.dirname(__FILE__)}/appstats/code_injections"
require "#{File.dirname(__FILE__)}/appstats/entry"
require "#{File.dirname(__FILE__)}/appstats/entry_date"
require "#{File.dirname(__FILE__)}/appstats/date_range"
require "#{File.dirname(__FILE__)}/appstats/action"
require "#{File.dirname(__FILE__)}/appstats/context"
require "#{File.dirname(__FILE__)}/appstats/tasks"
require "#{File.dirname(__FILE__)}/appstats/logger"
require "#{File.dirname(__FILE__)}/appstats/log_collector"
require "#{File.dirname(__FILE__)}/appstats/parser"
require "#{File.dirname(__FILE__)}/appstats/query"
require "#{File.dirname(__FILE__)}/appstats/result"
require "#{File.dirname(__FILE__)}/appstats/result_job"
require "#{File.dirname(__FILE__)}/appstats/host"
require "#{File.dirname(__FILE__)}/appstats/context_key"
require "#{File.dirname(__FILE__)}/appstats/context_value"
require "#{File.dirname(__FILE__)}/appstats/test_object"

# required in the appstats.gemspec
unless Appstats.const_defined?(:VERSION)
  require "#{File.dirname(__FILE__)}/appstats/version"
end

module Appstats

  def self.log(type,raw_message)
    message = "VERSION #{Appstats::VERSION} : #{raw_message}"
    if $logger.nil?
      # puts "LOCAL LOG #{type}: #{message}"
    else
      $logger.send(type,message)  
    end
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appstats-0.13.4 lib/appstats.rb
appstats-0.13.3 lib/appstats.rb
appstats-0.13.2 lib/appstats.rb
appstats-0.13.1 lib/appstats.rb
appstats-0.13.0 lib/appstats.rb
appstats-0.12.5 lib/appstats.rb
appstats-0.12.4 lib/appstats.rb
appstats-0.12.2 lib/appstats.rb
appstats-0.12.1 lib/appstats.rb
appstats-0.11.7 lib/appstats.rb