| 170 | } |
| 171 | |
| 172 | void write(const LogLevel level, const std::string &str) |
| 173 | { |
| 174 | if (!m_active) |
| 175 | return; |
| 176 | for (unsigned int i = 0; i < m_sinks.size(); i++) |
| 177 | m_sinks[i]->write(level, str); |
| 178 | } |
| 179 | |
| 180 | void activate(const bool b) { m_active = b; } |
| 181 | }; |
no test coverage detected