|
scc
2024.06
SystemC components library
|
the configuration class for the logging setup More...
#include <report.h>
Public Member Functions | |
| LogConfig & | logLevel (log) |
| LogConfig & | msgTypeFieldWidth (unsigned) |
| LogConfig & | printSysTime (bool=true) |
| LogConfig & | printSimTime (bool=true) |
| LogConfig & | printDelta (bool=true) |
| LogConfig & | printSeverity (bool=true) |
| LogConfig & | coloredOutput (bool=true) |
| LogConfig & | logFileName (std::string &&) |
| LogConfig & | logFileName (const std::string &) |
| LogConfig & | logFilterRegex (std::string &&) |
| LogConfig & | logFilterRegex (const std::string &) |
| LogConfig & | logAsync (bool=true) |
| LogConfig & | dontCreateBroker (bool=true) |
| LogConfig & | reportOnlyFirstError (bool=true) |
| LogConfig & | instanceBasedLogLevels (bool=true) |
| LogConfig & | installHandler (bool=true) |
Public Attributes | |
| log | level {log::WARNING} |
| unsigned | msg_type_field_width {24} |
| bool | print_sys_time {false} |
| bool | print_sim_time {true} |
| bool | print_delta {false} |
| bool | print_severity {true} |
| bool | colored_output {true} |
| std::string | log_file_name {""} |
| std::string | log_filter_regex {""} |
| bool | log_async {true} |
| bool | dont_create_broker {false} |
| bool | report_only_first_error {false} |
| bool | instance_based_log_levels {true} |
| bool | install_handler {true} |
the configuration class for the logging setup
using this class allows to configure the logging output in many aspects. The class follows the builder pattern.
| auto scc::LogConfig::coloredOutput | ( | bool | enable = true | ) |
enable/disable colored output
| enable |
Definition at line 505 of file report.cpp.
| auto scc::LogConfig::dontCreateBroker | ( | bool | v = true | ) |
disable/enable the automatic creation of a CCI broker
| enable |
Definition at line 525 of file report.cpp.
| auto scc::LogConfig::installHandler | ( | bool | v = true | ) |
disable/enable the use of the tabular report handler
Definition at line 538 of file report.cpp.
| auto scc::LogConfig::instanceBasedLogLevels | ( | bool | v = true | ) |
disable/enable the suppression of all error messages after the first error
Definition at line 534 of file report.cpp.
| auto scc::LogConfig::logAsync | ( | bool | v = true | ) |
enable/disable asynchronous output (write to file in separate thread
| enable |
Definition at line 520 of file report.cpp.
| LogConfig& scc::LogConfig::logFileName | ( | const std::string & | ) |
set the file name for the log output file
| name |
| LogConfig& scc::LogConfig::logFileName | ( | std::string && | ) |
set the file name for the log output file
| name | of the log file to be generated |
| LogConfig& scc::LogConfig::logFilterRegex | ( | const std::string & | ) |
set the regular expression to filter the output
| string | containing the regex |
| LogConfig& scc::LogConfig::logFilterRegex | ( | std::string && | ) |
set the file name for the log output file
| name |
| auto scc::LogConfig::logLevel | ( | scc::log | level | ) |
| auto scc::LogConfig::msgTypeFieldWidth | ( | unsigned | width | ) |
define the width of the message field, 0 to disable, std::numeric_limits<unsigned>::max() for arbitrary width
| width | of the message field in the log |
Definition at line 470 of file report.cpp.
| auto scc::LogConfig::printDelta | ( | bool | enable = true | ) |
enable/disable printing delta cycles
| enable |
Definition at line 485 of file report.cpp.
| auto scc::LogConfig::printSeverity | ( | bool | enable = true | ) |
enable/disable printing of severity level
| enable |
Definition at line 490 of file report.cpp.
| auto scc::LogConfig::printSimTime | ( | bool | enable = true | ) |
enable/disable printing of simulation time
| enable |
Definition at line 480 of file report.cpp.
| auto scc::LogConfig::printSysTime | ( | bool | enable = true | ) |
enable/disable printing of system time
| enable |
Definition at line 475 of file report.cpp.
| auto scc::LogConfig::reportOnlyFirstError | ( | bool | v = true | ) |
disable/enable the suppression of all error messages after the first error
Definition at line 530 of file report.cpp.