Sha256: c31f77a0ef34360e38d51ff8e34703689a909f2118104517b090ee0cbad3242d

Contents?: true

Size: 929 Bytes

Versions: 1

Compression:

Stored size: 929 Bytes

Contents

# frozen_string_literal: true

require_relative 'mr_loga_loga/version'
require_relative 'mr_loga_loga/configuration'
require_relative 'mr_loga_loga/instance_methods'
require_relative 'mr_loga_loga/logger_data'
require_relative 'mr_loga_loga/log_message'
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'

# ## 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.2.0 lib/mr_loga_loga.rb