OpenM++ runtime library (libopenm)
|
base for log public interface More...
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 | |
base for log public interface
|
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.