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

Method SetLogFileName

cpp/src/platform/Log.cpp:301–312  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Change the name of the log file (will start writing a new file) -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

299// Change the name of the log file (will start writing a new file)
300//-----------------------------------------------------------------------------
301void Log::SetLogFileName
302(
303 const string &_filename
304)
305{
306 if( s_instance && s_dologging && s_instance->m_pImpl )
307 {
308 s_instance->m_logMutex->Lock();
309 s_instance->m_pImpl->SetLogFileName( _filename );
310 s_instance->m_logMutex->Unlock();
311 }
312}
313
314//-----------------------------------------------------------------------------
315// <Log::Log>

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected