module

Logit::Utils::SafeOutput

Class methods

safe_error_write(message : String, fallback : IO | Nil = nil) : Nil

Attempt to write to an alternative output if STDERR fails

Source
safe_stderr_write(message : String) : Nil

Silently attempt to write to STDERR; never raises This is critical for a logging library - it must NEVER crash the app

Source