rdb_flush_logs Subroutine

public subroutine rdb_flush_logs() bind(c, name="rdb_flush_logs")

Flush the buffered log stream (unit 6 / stdout — what pic_logger’s global_logger writes to; it exposes no flush of its own). Call this in a finally around a C entry point if the human-readable log needs to be ordered relative to Python’s own stdout (D4.4) — the ring (above) is still the only channel to trust for the SPECIFIC failure reason.

Arguments

None

Source Code

   subroutine rdb_flush_logs() bind(c, name="rdb_flush_logs")
      !! Flush the buffered log stream (unit 6 / stdout — what
      !! `pic_logger`'s `global_logger` writes to; it exposes no flush of
      !! its own). Call this in a `finally` around a C entry point if the
      !! human-readable log needs to be ordered relative to Python's own
      !! stdout (D4.4) — the ring (above) is still the only channel to
      !! trust for the SPECIFIC failure reason.
      flush (output_unit)
   end subroutine rdb_flush_logs