lib/hanami/logger.rb in hanami-utils-1.3.0.beta1 vs lib/hanami/logger.rb in hanami-utils-1.3.0
- old
+ new
@@ -345,9 +345,10 @@
# @since 1.2.0
# @api private
def lookup_colorizer(colorizer)
return NullColorizer.new if colorizer == false
+
colorizer || (tty? ? Colorizer : NullColorizer).new
end
# @since 1.2.0
# @api private