Returns whether logs will be written to any output */
| 193 | |
| 194 | /** Returns whether logs will be written to any output */ |
| 195 | bool Enabled() const |
| 196 | { |
| 197 | StdLockGuard scoped_lock(m_cs); |
| 198 | return m_buffering || m_print_to_console || m_print_to_file || !m_print_callbacks.empty(); |
| 199 | } |
| 200 | |
| 201 | /** Connect a slot to the print signal and return the connection */ |
| 202 | std::list<std::function<void(const std::string&)>>::iterator PushBackCallback(std::function<void(const std::string&)> fun) |