MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Stop

Method Stop

lib/base/streamlogger.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15std::mutex StreamLogger::m_Mutex;
16
17void StreamLogger::Stop(bool runtimeRemoved)
18{
19 ObjectImpl<StreamLogger>::Stop(runtimeRemoved);
20
21 // make sure we flush the log data on shutdown, even if we don't call the destructor
22 if (m_Stream)
23 m_Stream->flush();
24}
25
26/**
27 * Destructor for the StreamLogger class.

Callers 1

~StreamLoggerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected