lib/null_logger.rb in null-logger-0.1.3 vs lib/null_logger.rb in null-logger-0.1.4
- old
+ new
@@ -1,16 +1,18 @@
+# frozen_string_literal: true
+
# Null logger class
# Is used when logger is not defined
class NullLogger
# Possible log levels from ruby Logger::Severity class
- LOG_LEVELS = %w(
+ LOG_LEVELS = %w[
unknown
fatal
error
warn
info
debug
- ).freeze
+ ].freeze
# @return [Boolean] true if we can handle this missing method, otherwise false
# @param method_name [String, Symbol] method name
# @param include_private [Boolean] should we include private methods as well
def respond_to_missing?(method_name, include_private = false)