Sha256: 7a982a3cf19f667a01e7c51f6a673fbb027014b0e3bcdf343b1e5d121b480227

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true

require "gem_info"

require_relative "simple_logger/core_ext/ruby/string"
require_relative "simple_logger/version"
require_relative "simple_logger/logger"
require_relative "simple_logger/klass_logger"

module RubySmart
  module SimpleLogger
    # delegate new method to logger
    def self.new(*args)
      RubySmart::SimpleLogger::Logger.new(*args)
    end
  end
end

# load date extensions for logger
if GemInfo.loaded?('activesupport') && GemInfo.installed?('actionview')
  ActiveSupport.on_load(:action_view) do
    require('action_view/helpers/date_helper')
    RubySmart::SimpleLogger::Logger.include(ActionView::Helpers::DateHelper)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_smart-simple_logger-1.1.1 lib/ruby_smart/simple_logger.rb
ruby_smart-simple_logger-1.1.0 lib/ruby_smart/simple_logger.rb
ruby_smart-simple_logger-1.0.0 lib/ruby_smart/simple_logger.rb