OpenWalnut  1.4.0
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.
WStreamedLogger error (const std::string &source)
 Logging an error message.
WStreamedLogger warn (const std::string &source)
 Logging a warning message.
WStreamedLogger info (const std::string &source)
 Logging an information message.
WStreamedLogger debug (const std::string &source)
 Logging a debug message.

Detailed Description

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


Function Documentation

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().

WStreamedLogger wlog::debug ( const std::string &  source) [inline]
WStreamedLogger wlog::error ( const std::string &  source) [inline]
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 WModule::infoLog(), WProjectFile::save(), WProjectFile::threadMain(), and WKernel::threadMain().

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