Sha256: 380c9c12470684e905b6540177f9de5e7b0738de16b506c2f8828425849a7d6f

Contents?: true

Size: 766 Bytes

Versions: 6

Compression:

Stored size: 766 Bytes

Contents

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

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

6 entries across 6 versions & 1 rubygems

Version Path
logster-0.1.1 lib/logster.rb
logster-0.1.0 lib/logster.rb
logster-0.0.13 lib/logster.rb
logster-0.0.12 lib/logster.rb
logster-0.0.11 lib/logster.rb
logster-0.0.10 lib/logster.rb