OpenWalnut  1.5.0dev
Classes | Functions
wlog Namespace Reference

This namespace collects several convenient access points such as wlog::err for logging with streams to our WLogger. More...

Classes

class  WStreamedLogger
 Resource class for streamed logging. More...
 

Functions

WStreamedLogger _wlog (const std::string &source, LogLevel level)
 Convenient function for logging messages to our WLogger but not for public use outside of this module. More...
 
WStreamedLogger error (const std::string &source)
 Logging an error message. More...
 
WStreamedLogger warn (const std::string &source)
 Logging a warning message. More...
 
WStreamedLogger info (const std::string &source)
 Logging an information message. More...
 
WStreamedLogger debug (const std::string &source)
 Logging a debug message. More...
 

Detailed Description

This namespace collects several convenient access points such as wlog::err for logging with streams to our WLogger.

Function Documentation

◆ _wlog()

WStreamedLogger wlog::_wlog ( const std::string &  source,
LogLevel  level 
)
inline

Convenient function for logging messages to our WLogger but not for public use outside of this module.

Parameters
sourceIndicate the source where this log message origins.
levelThe LogLevel of this message
Returns
The logger created using the functions parameters

Definition at line 287 of file WLogger.h.

References wlog::WStreamedLogger::WStreamedLogger().

Referenced by debug(), error(), info(), and warn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ debug()

WStreamedLogger wlog::debug ( const std::string &  source)
inline

◆ error()

WStreamedLogger wlog::error ( const std::string &  source)
inline

◆ info()

WStreamedLogger wlog::info ( const std::string &  source)
inline

Logging an information message.

Parameters
sourceIndicate the source where this log message origins.
Returns
The logger with the warning message.

Definition at line 320 of file WLogger.h.

References _wlog().

Referenced by WQtGLScreenCapture::handleImage(), WModule::infoLog(), WScriptUI::loadToolboxes(), WMainWindow::restoreSavedState(), WQtGui::run(), WProjectFile::save(), WMainWindow::saveWindowState(), WMainWindow::setupGUI(), WQtGLScreenCapture::startRec(), WQtGLScreenCapture::stopRec(), WKernel::threadMain(), and WProjectFile::threadMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ warn()

WStreamedLogger wlog::warn ( const std::string &  source)
inline