chrisarcand/dug

View on GitHub
lib/dug/logger.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Dug
  # @private
  module Logger
    # TODO This obviously needs a lot of love

    def log(message, level: :info)
      unless $testing
        puts "[#{level.to_s.upcase}] #{Time.now} - #{message}"
      end
    end
  end
end