lib/hanami/logger.rb in hanami-utils-1.3.6 vs lib/hanami/logger.rb in hanami-utils-1.3.7

- old
+ new

@@ -130,15 +130,15 @@ DEFAULT_APPLICATION_NAME = "hanami" # @since 0.8.0 # @api private LEVELS = ::Hash[ - "debug" => DEBUG, - "info" => INFO, - "warn" => WARN, - "error" => ERROR, - "fatal" => FATAL, + "debug" => DEBUG, + "info" => INFO, + "warn" => WARN, + "error" => ERROR, + "fatal" => FATAL, "unknown" => UNKNOWN ].freeze # @since 1.2.0 # @api private @@ -279,10 +279,10 @@ # logger.info "Hello World" # # # => {"app":"Hanami","severity":"DEBUG","time":"2017-03-30T13:57:59Z","message":"Hello World"} # rubocop:disable Lint/SuppressedException # rubocop:disable Metrics/ParameterLists - def initialize(application_name = nil, *args, stream: $stdout, level: DEBUG, formatter: nil, filter: [], colorizer: nil) + def initialize(application_name = nil, *args, stream: $stdout, level: DEBUG, formatter: nil, filter: [], colorizer: nil) # rubocop:disable Layout/LineLength begin Utils::Files.mkdir_p(stream) rescue TypeError end