module
Logit::Utils::SafeOutput
Defined in:
logit/utils/safe_output.crClass Method Summary
-
.safe_error_write(message : String, fallback : IO | Nil = nil) : Nil
Attempt to write to an alternative output if STDERR fails
-
.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
Class Method Detail
def self.safe_error_write(message : String, fallback : IO | Nil = nil) : Nil
#
Attempt to write to an alternative output if STDERR fails
def self.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