| 819 | } |
| 820 | |
| 821 | unsigned |
| 822 | LogObject::_roll_files(long last_roll_time, long time_now) |
| 823 | { |
| 824 | unsigned num_rolled = 0; |
| 825 | |
| 826 | if (m_logFile) { |
| 827 | // no need to roll if object writes to a pipe |
| 828 | if (!writes_to_pipe()) { |
| 829 | num_rolled += m_logFile->roll(last_roll_time, time_now, m_reopen_after_rolling); |
| 830 | |
| 831 | if (Log::config->auto_delete_rolled_files && m_max_rolled > 0) { |
| 832 | m_logFile->trim_rolled(m_max_rolled); |
| 833 | } |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | m_last_roll_time = time_now; |
| 838 | return num_rolled; |
| 839 | } |
| 840 | |
| 841 | void |
| 842 | LogObject::check_buffer_expiration(long time_now) |
nothing calls this directly
no test coverage detected