log
sets the logging option
which generates the log file devspp_log.txt
. After the
log
command, DEVS++ shows the current log settings and
waits for the user input as follows.
current log setting: on, p00 options: {on,off}, {+,-}{pqt} nc >
The user options are on
or off
or
{+,-}{pqt}
or nc
. Their meanings are:
{on, off}
is the main log options. Use on
for turning log on or off
for turning log off. If the mode
is on
, three independent options are selectable.
p
is for logging performance indices
at the end of a simulation run.
q
is for logging the
total state of the model at the end of a simulation run.
t
is for logging every single discrete event transition.
on
, it is shown as pqt
. If p
is
on
, q
and t
are off
, the display is
shown as p00
, etc.
{+,-}{pqt}
can be
interpreted that +
stands for setting the following options
on
, while -
stands for turning the following options
off
. For example +qt
means to set q
and
t
on, while -p
means to set p
off.
nc
no change.
The corresponding APIs are
static void SRTEngine::SetLogOn(bool flag=true), static void SRTEngine::SetLogPerformance(bool flag=true), static void SRTEngine::SetLogTotalState(bool flag=true), static void SRTEngine::SetLogTransition(bool flag=true), static bool SRTEngine::GetLogOn(), static bool SRTEngine::GetLogPerformance(), static bool SRTEngine::GetLogTotalState(), static bool SRTEngine::GetLogTransition().