Sha256: 554392a0e427b87f55c128ee730861abae4384f124cd926ca5febd3efc8ae3bc

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

require 'logger'

# Add logging to classes
module YnabLogger
  def logger
    @logger unless @logger.nil?
    @logger ||= Logger.new($stderr)
    @logger.level = Logger::FATAL
    @logger.level = Logger::DEBUG if ENV['YNAB_CONVERT_DEBUG'] == 'true'
    @logger
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ynab_convert-2.0.6 lib/ynab_convert/logger.rb
ynab_convert-2.0.5 lib/ynab_convert/logger.rb
ynab_convert-2.0.4 lib/ynab_convert/logger.rb
ynab_convert-2.0.3 lib/ynab_convert/logger.rb
ynab_convert-2.0.1 lib/ynab_convert/logger.rb
ynab_convert-2.0.0 lib/ynab_convert/logger.rb