Sha256: 87258f617e67967a40e4bd223d783e101faac19ede63d89bfd2c8e0e012ab91d

Contents?: true

Size: 987 Bytes

Versions: 4

Compression:

Stored size: 987 Bytes

Contents

# frozen_string_literal: true

require_relative 'mr_loga_loga/version'
require_relative 'mr_loga_loga/configuration'
require_relative 'mr_loga_loga/logger_proxy'
require_relative 'mr_loga_loga/instance_methods'
require_relative 'mr_loga_loga/context'
require_relative 'mr_loga_loga/logger'
require_relative 'mr_loga_loga/formatters/key_value'
require_relative 'mr_loga_loga/formatters/json'

require_relative 'mr_loga_loga/extensions/rails'
require_relative 'mr_loga_loga/extensions/lograge'

# ## Description
#
# The MrLogaLoga module provides additional logging functionality when included in your classes.
#
module MrLogaLoga
  class Error < StandardError; end

  def self.included(base)
    base.send :include, InstanceMethods
  end

  class << self
    # Create a new configuration object
    #
    # @return [Configuration] a new configuration
    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mr_loga_loga-0.1.5 lib/mr_loga_loga.rb
mr_loga_loga-0.1.4 lib/mr_loga_loga.rb
mr_loga_loga-0.1.3 lib/mr_loga_loga.rb
mr_loga_loga-0.1.2 lib/mr_loga_loga.rb