Sha256: 1ce7562b2489e4f51f1bc54e35b49b99c368a76645999c37be6bd6f6fc97cbee

Contents?: true

Size: 803 Bytes

Versions: 3

Compression:

Stored size: 803 Bytes

Contents

require 'logster/logger'
require 'logster/message'
require 'logster/configuration'
require 'logster/web'
require 'logster/ignore_pattern'

module Logster
  def self.logger=(logger)
    @logger = logger
  end

  def self.logger
    @logger
  end

  def self.store=(store)
    @store=store
  end

  def self.store
    @store
  end

  def self.config=(config)
    @config = config
  end

  def self.config
    @config ||= Configuration.new
  end

  def self.add_to_env(env, key, value)
    logster_env = Logster::Message.populate_from_env(env)
    logster_env[key] = value
  end
end

Logster.config.current_context = lambda{ |env, &block| block.call }
Logster.config.authorize_callback = lambda{ |env| true }

if defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i >= 3
  require 'logster/rails/railtie'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logster-0.1.5 lib/logster.rb
logster-0.1.4 lib/logster.rb
logster-0.1.3 lib/logster.rb