Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Logger#error?

error?

Returns true if and only if the current severity level allows for the printing of ERROR messages.

See also #error #error! #fatal #fatal! also in 3.4 · 3.3 · 3.2 · 3.0