MCPcopy Create free account
hub / github.com/ElementsProject/elements / Enabled

Method Enabled

src/logging.h:195–199  ·  view source on GitHub ↗

Returns whether logs will be written to any output */

Source from the content-addressed store, hash-verified

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)

Callers 1

LogPrintf_Function · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected