|
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 } |
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. | |
| std::string | getLevelString (fers_log_level_t l) |
Variables | |
| Logger | logger |
| Externally available logger object. | |
|
strong |
Definition at line 35 of file logging.h.
|
noexcept |
Converts a log level enum value to its string representation.
| level | The log level. |
Definition at line 121 of file logging.h.
References DEBUG, ERROR, FATAL, INFO, TRACE, and WARNING.
Referenced by logging::Logger::log(), and main().
Here is the caller graph for this function:| std::string logging::getLevelString | ( | fers_log_level_t | l | ) |
Definition at line 25 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 152 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_log(), and log().