Sha256: d929aca7bf4615d3f880d708e1b761ffe2fbdb6288fd5d8c4f06c0d300a43424
Contents?: true
Size: 927 Bytes
Versions: 13
Compression:
Stored size: 927 Bytes
Contents
require 'loga/version' require 'loga/tagged_logging' require 'loga/configuration' require 'loga/utilities' require 'loga/event' require 'loga/parameter_filter' require 'loga/rack/logger' require 'loga/rack/request' require 'loga/rack/request_id' require 'loga/railtie' if defined?(Rails) require 'loga/sidekiq' module Loga ConfigurationError = Class.new(StandardError) def self.configuration unless @configuration raise ConfigurationError, 'Loga has not been configured. Configure with Loga.configure(options)' end @configuration end def self.configure(options, framework_options = {}) raise ConfigurationError, 'Loga has already been configured' if @configuration @configuration ||= Configuration.new(options, framework_options) Loga::Sidekiq.configure_logging end def self.logger configuration.logger end def self.reset @configuration = nil end end
Version data entries
13 entries across 13 versions & 1 rubygems