module Logit::Utils::SafeOutput

Defined in:

logit/utils/safe_output.cr

Class Method Summary

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


[View source]
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


[View source]