lib/punk/core/logger.rb in punk-0.3.6 vs lib/punk/core/logger.rb in punk-0.4.1
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require 'semantic_logger'
+require "semantic_logger"
module PUNK
include SemanticLogger::Loggable
def self.profile_info(name, **kwargs)
@@ -20,12 +20,12 @@
logger.measure_trace("Completed #{name}") { logger.tagged(name) { yield } }
end
SemanticLogger.default_level =
case PUNK.store.args.task
- when 'console', 'script'
+ when "console", "script"
:info
- when 'spec'
+ when "spec"
:debug
else
:trace
end
SemanticLogger.add_appender(io: $stdout, formatter: :color)