MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / setLogFile

Method setLogFile

runtime/RuntimeLogger.cc:683–686  ·  view source on GitHub ↗

* Set where the NanoLog should output its compressed log. If a previous * log file was specified, NanoLog will attempt to sync() the remaining log * entries before swapping files. For best practices, the output file shall * be set before the first invocation to log by the main thread as this * function is *not* thread safe. * * By default, the NanoLog will output to /tmp/compressedLog * * \param f

Source from the content-addressed store, hash-verified

681* if the file cannot be opened or crated
682*/
683void
684RuntimeLogger::setLogFile(const char *filename) {
685 nanoLogSingleton.setLogFile_internal(filename);
686}
687
688/**
689* Sets the minimum log level new NANO_LOG messages will have to meet before

Callers

nothing calls this directly

Calls 1

setLogFile_internalMethod · 0.80

Tested by

no test coverage detected