Embedded Artistry Framework
Embedded Systems C++ Framework
Namespaces | Enumerations | Functions | Variables
log_defs.hpp File Reference
#include "_log_common_defs.h"
#include <gsl/gsl_util>
#include <string>
Include dependency graph for log_defs.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 embvm
 Embedded framework core interfaces, classes, and definitions.
 
 embvm::logger
 Log definitions.
 

Enumerations

enum  embvm::logger::level {
  embvm::logger::off = LOG_LEVEL_OFF, embvm::logger::critical = LOG_LEVEL_CRITICAL, embvm::logger::error = LOG_LEVEL_ERROR, embvm::logger::warn = LOG_LEVEL_WARN,
  embvm::logger::info = LOG_LEVEL_INFO, embvm::logger::debug = LOG_LEVEL_DEBUG, embvm::logger::verbose = LOG_LEVEL_VERBOSE
}
 C++ log level definitions. More...
 

Functions

constexpr std::string_view embvm::logger::to_str (level l) noexcept
 Get the name of a log level. More...
 
constexpr const char * embvm::logger::to_c_str (level l) noexcept
 Get the name of a log level as a C-string. More...
 
constexpr const char * embvm::logger::to_short_c_str (level l) noexcept
 Get the short name of a log level as a C-string. More...
 

Variables

constexpr logger::level embvm::logger::LOG_LEVEL_LIMIT = static_cast<logger::level>(LOG_LEVEL)
 Global log level limit. More...
 
constexpr std::string_view level_string_names [] embvm::logger::LOG_LEVEL_NAMES
 Declare a global array of log level names. More...
 
constexpr const char *level_short_names [] embvm::logger::LOG_LEVEL_SHORT_NAMES