#include <logging.h>
|
| Log (const Log &)=delete |
|
Log & | operator= (const Log &)=delete |
|
virtual | ~Log () |
| the destructor
|
|
std::ostream & | get (log_level level=INFO, const char *category="") |
|
|
std::atomic< log_level > & | get_last_log_level () |
|
|
static const char *const * | get_log_level_cstr () |
|
template<typename T>
class logging::Log< T >
the logger class
Definition at line 88 of file logging.h.
◆ abort_on_fatal()
template<typename T >
static std::atomic<bool>& logging::Log< T >::abort_on_fatal |
( |
| ) |
|
|
inlinestatic |
get a reference to the abort on fatal flag
- Returns
- the logging level
Definition at line 146 of file logging.h.
◆ from_string()
parse a log level from a string
- Parameters
-
level | the string representing the log level |
- Returns
- the log level
Definition at line 163 of file logging.h.
◆ get()
get the underlying ostringstream for a certain log level and category
- Parameters
-
level | the log level |
category | the category string |
- Returns
- the underlying output stream
Definition at line 114 of file logging.h.
◆ get_reporting_level()
get a reference to the configured logging level
- Returns
- the logging level
Definition at line 140 of file logging.h.
◆ print_severity()
template<typename T >
static std::atomic<bool>& logging::Log< T >::print_severity |
( |
| ) |
|
|
inlinestatic |
get the reference to the flag indicating if severity should be part of the log
- Returns
- the print severity flag
Definition at line 184 of file logging.h.
◆ print_time()
get the reference to the flag indicating if the current host time should be part of the log
- Returns
- the print time flag
Definition at line 175 of file logging.h.
◆ reporting_level()
get a reference to the configured logging level
- Returns
- the logging level
Definition at line 131 of file logging.h.
◆ to_string()
translate a lg level to a string
- Parameters
-
- Returns
- the string representing the log level
Definition at line 156 of file logging.h.
The documentation for this class was generated from the following file:
- /home/eyck/git/SystemC-Components/src/common/util/logging.h