OpenM++ runtime library (libopenm)
openm::ILogBase Struct Referenceabstract

base for log public interface More...

Inheritance diagram for openm::ILogBase:

Public Member Functions

virtual const bool isEnabled (void) noexcept=0
 return true if log to console or to file enabled
 
virtual void logMsg (const char *i_msg, const char *i_extra=NULL) noexcept=0
 log message
 
virtual void logFormatted (const char *i_format,...) noexcept=0
 log message formatted with vsnprintf()
 
virtual const std::string timeStamp (void) noexcept=0
 return timestamp part of log file name: 2012_08_17_16_04_59_148. More...
 
virtual void setRank (int i_rank, int i_worldSize) noexcept=0
 use process rank as log message prefix
 

Detailed Description

base for log public interface

Member Function Documentation

◆ timeStamp()

virtual const std::string openm::ILogBase::timeStamp ( void  )
pure virtualnoexcept

return timestamp part of log file name: 2012_08_17_16_04_59_148.

it is never return empty "" string, even no log enabled or timestamp disabled for log file

Implemented in openm::LogBase.


The documentation for this struct was generated from the following files: