Module
Logging severity.
Constants
Low-level information, mostly for developers.
Generic (useful) information about system operation.
A warning.
A handleable error condition.
An unhandleable error that results in a program crash.
An unknown message that should always be logged.
No documentation available
Class Methods
lib/logger/severity.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/lib/logger/severity.rb, line 29
def self.coerce(severity)
if severity.is_a?(Integer)
severity
else
key = severity.to_s.downcase
LEVELS[key] || raise(ArgumentError, "invalid log level: #{severity}")
end
end
No documentation available