MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / SetLoggingState

Method SetLoggingState

cpp/src/platform/Log.cpp:155–164  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Set flag to actually write to log or skip it (legacy version) If logging is enabled, the default log detail settings will be used Write to file/screen LogLevel_Detail Save in queue for errors LogLevel_Debug Trigger for dumping queue LogLevel_Warning Console output? Yes Append to an existing log

Source from the content-addressed store, hash-verified

153// Append to an existing log? No (overwrite)
154//-----------------------------------------------------------------------------
155void Log::SetLoggingState
156(
157 bool _dologging
158)
159{
160 bool prevLogging = s_dologging;
161 s_dologging = _dologging;
162
163 if (!prevLogging && s_dologging) Log::Write(LogLevel_Always, "Logging started\n\n");
164}
165
166//-----------------------------------------------------------------------------
167// <Log::SetLoggingState>

Callers

nothing calls this directly

Calls 3

WriteFunction · 0.85
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected