OpenWalnut  1.2.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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 281 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 314 of file WLogger.h.

References _wlog().

Referenced by WModule::infoLog(), WRoiProjectFileIO::save(), WProjectFile::save(), and WProjectFile::threadMain().

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

Logging a warning message.

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

Definition at line 303 of file WLogger.h.

References _wlog().

Referenced by WModuleProjectFileCombiner::apply(), WGEProjectFileIO::done(), WHistogramBasic::insert(), WGEShaderVersionPreprocessor::process(), WReaderMatrixSymVTK::readTable(), WProjectFile::threadMain(), and WModule::warnLog().