OpenM++ runtime library (libopenm)
|
trace log public interface: model event log to console and into log files More...
#include <omLog.h>
Public Member Functions | |
virtual void | init (bool i_logToConsole, const char *i_basePath, bool i_logToFile, bool i_useTimeStamp=false, bool i_usePidStamp=false, bool i_noMsgTime=false) noexcept=0 |
re-initialize log file name(s) and other log settings. More... | |
Public Member Functions inherited from openm::ILogBase | |
virtual const bool | isEnabled (void) noexcept=0 |
return true if log to console or to file enabled More... | |
virtual void | logMsg (const char *i_msg, const char *i_extra=NULL) noexcept=0 |
log message More... | |
virtual void | logFormatted (const char *i_format,...) noexcept=0 |
log message formatted with vsnprintf() More... | |
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 More... | |
trace log public interface: model event log to console and into log files
|
pure virtualnoexcept |
re-initialize log file name(s) and other log settings.
[in] | i_logToConsole | if true then log to console |
[in] | i_basePath | path to "last" log file, if NULL or empty "" then no log file |
[in] | i_logToFile | if true then enable log to "last" file |
[in] | i_useTimeStamp | if true then use timestamp suffix in "stamped" file name |
[in] | i_usePidStamp | if true then use PID suffix in "stamped" file name |
[in] | i_noMsgTime | if true then not prefix log messages with date-time |
Implemented in openm::TraceLog.