Reset the buffer to empty. Call after flushing if you want to reuse it.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(log_buffer_type), | intent(inout) | :: | buf |
pure subroutine clear_log_buffer(buf) !! Reset the buffer to empty. Call after flushing if you want to reuse it. type(log_buffer_type), intent(inout) :: buf buf%count = 0 buf%overflow = 0 buf%truncated = 0 end subroutine clear_log_buffer