|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
Classes | |
| class | Logger |
| Thread-safe logger class for handling logging operations. More... | |
Enumerations | |
| enum class | Level { TRACE , DEBUG , INFO , WARNING , ERROR , FATAL , OFF } |
Functions | |
| std::string | getLevelString (const Level level) noexcept |
| Converts a log level enum value to its string representation. | |
| template<typename... Args> | |
| void | log (Level level, const std::source_location &location, const std::string &formatStr, Args &&... args) noexcept |
| Logs a formatted message with a specific log level and source location. | |
| static std::string | getLevelString (fers_log_level_t l) |
Variables | |
| Logger | logger |
| Externally available logger object. | |
|
strong |
Definition at line 37 of file logging.h.
|
noexcept |
Converts a log level enum value to its string representation.
| level | The log level. |
Definition at line 143 of file logging.h.
References DEBUG, ERROR, FATAL, INFO, OFF, TRACE, and WARNING.
Referenced by logging::Logger::log(), and main().
Here is the caller graph for this function:
|
static |
Definition at line 26 of file main.cpp.
References FERS_LOG_DEBUG, FERS_LOG_ERROR, FERS_LOG_FATAL, FERS_LOG_INFO, FERS_LOG_TRACE, and FERS_LOG_WARNING.
|
noexcept |
Logs a formatted message with a specific log level and source location.
| Args | Variadic template for format arguments. |
| level | The log level. |
| location | The source location of the log call. |
| formatStr | The format string. |
| args | The format arguments. |
Definition at line 176 of file logging.h.
References logging::Logger::log(), and logger.
Here is the call graph for this function:| Logger logging::logger |
Externally available logger object.
Definition at line 23 of file logging.cpp.
Referenced by fers_configure_logging(), fers_get_log_level(), fers_log(), fers_set_log_callback(), and log().