| 616 | } |
| 617 | |
| 618 | void write(VDebug& logline) |
| 619 | { |
| 620 | auto pos = m_os->tellp(); |
| 621 | logline.stringify(*m_os); |
| 622 | m_bytes_written += m_os->tellp() - pos; |
| 623 | if (m_bytes_written > m_log_file_roll_size_bytes) { |
| 624 | roll_file(); |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | private: |
| 629 | void roll_file() |