Dear all,
i am designing a network simulator where a lot of messages are flying around. For logging and debugging the states of the modules and the simulation i use the sc_report_handler class.
In main.cpp i set the following options:
sc_report_handler::set_verbosity_level(verbosity);
sc_report_handler::set_log_file_name("out.log");
sc_report_handler::set_actions(SC_INFO, SC_LOG);
sc_report_handler::set_actions(SC_WARNING, SC_LOG);
verbosity is a variable passed from a configuration file.
In my files/modules etc i have usually code like this to print into the log file: