Sha256: 33350944c192df08f69f625259ef27a5f358d27784f980890773b865158dd538

Contents?: true

Size: 1015 Bytes

Versions: 1

Compression:

Stored size: 1015 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/active_support_logger_patch'
require_relative 'mr_loga_loga/extensions/lograge_patch'

# == 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

1 entries across 1 versions & 1 rubygems

Version Path
mr_loga_loga-0.1.1 lib/mr_loga_loga.rb