lib/ougai/logging.rb in ougai-1.6.6 vs lib/ougai/logging.rb in ougai-1.7.0
- old
+ new
@@ -1,15 +1,17 @@
+# frozen_string_literal: true
+
module Ougai
# Common Logging features
module Logging
attr_accessor :with_fields
attr_writer :before_log
module Severity
include ::Logger::Severity
TRACE = -1
- SEV_LABEL = %w(TRACE DEBUG INFO WARN ERROR FATAL ANY).each(&:freeze).freeze
+ SEV_LABEL = %w(TRACE DEBUG INFO WARN ERROR FATAL ANY)
def to_label(severity)
SEV_LABEL[severity + 1] || 'ANY'
end
end