THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Queue log records and observe sink delivery or cleanup failures.
| Class | _ |
Drain queued records while retaining and observing delivery failures. |
| Class | |
Deliver records to an owned sink through a bounded background queue. |
| Exception | |
Signal a synchronous or background log-delivery failure. |
| Function | _raise |
Raise a delivery error for the active sink exception. |
| Function | observe |
Observe an active sink exception before invoking its original callback. |
Raise a delivery error for the active sink exception.
| Parameters | |
_record:logging.LogRecord | Failed record, accepted for handleError compatibility. |
| Returns | |
None | Never return normally. |
| Raises | |
LoggingDeliveryError | Always, with the active sink exception as its cause when present. |
def observe_sink_error(record:
logging.LogRecord, *, app: object, original: Callable[ [ logging.LogRecord], None]):
(source)
¶
Observe an active sink exception before invoking its original callback.
| Parameters | |
record:logging.LogRecord | Record passed to the sink's original error callback. |
app:object | Application context supplied to failure observation. |
original:collections.abc.Callable | Original error callback receiving the record after observation. |
| Returns | |
None | This function does not return a value. |
| Raises | |
LoggingDeliveryError | If a sink error occurs while reporting another application failure. |