Sha256: d098a4553b82663aafcfdd5a4ebff88b063d8e93fb2946407f8bf5dced663816
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module PhiAttrs PHI_ACCESS_LOG_TAG = 'PHI Access Log' class Logger class << self def logger unless @logger logger = ActiveSupport::Logger.new(PhiAttrs.log_path, PhiAttrs.log_shift_age, PhiAttrs.log_shift_size) logger.formatter = Formatter.new @logger = ActiveSupport::TaggedLogging.new(logger) end @logger end delegate :debug, :info, :warn, :error, :fatal, :tagged, to: :logger end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phi_attrs-0.3.2 | lib/phi_attrs/logger.rb |
phi_attrs-0.3.1 | lib/phi_attrs/logger.rb |
phi_attrs-0.3.0 | lib/phi_attrs/logger.rb |
phi_attrs-0.2.4 | lib/phi_attrs/logger.rb |