Sha256: e498726237b10554844d798c124e366cf1ba6965dd2d12bca2f48ce868aa9f52
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true module MrLogaLoga # == Description # # Instance methods to be attached when including the main module. # # @api private module InstanceMethods def loga_context { class_name: self.class.name } end def logger MrLogaLoga::LoggerProxy.new(loga_loga, -> { loga_context }) end def loga_loga @loga_loga ||= if defined?(Rails.application.logger) Rails.application.logger else MrLogaLoga.configuration.logger end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mr_loga_loga-0.1.0 | lib/mr_loga_loga/instance_methods.rb |