Sha256: c44f3418c06b0929d32b4833fa4bf09620b958e5e028cfc5318a821db50e9156
Contents?: true
Size: 1.17 KB
Versions: 9
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true require "logster/version" require "logster/logger" require "logster/message" require "logster/configuration" require "logster/web" require "logster/ignore_pattern" require "logster/pattern" require "logster/suppression_pattern" require "logster/grouping_pattern" require "logster/group" require "logster/cache" if defined?(Redis) require "logster/redis_store" else STDERR.puts "ERROR: Redis is not loaded, ensure redis gem is required before logster" exit end 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 def self.set_environments(envs) config.environments = envs end end # check logster/configuration.rb for config options # Logster.config.environments << :staging require "logster/rails/railtie" if defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i >= 3
Version data entries
9 entries across 9 versions & 1 rubygems