|
The MAUVE Toolchain
|
Class of a generic MAUVE logger. More...
#include <logger.hpp>

Public Member Functions | |
| AbstractLogger () | |
| Constructor. | |
| virtual | ~AbstractLogger () |
| Destructor. | |
| template<typename... Args> | |
| void | critical (const char *fmt, const Args &...args) |
| Log a message at CRITICAL level. More... | |
| template<typename... Args> | |
| void | debug (const char *fmt, const Args &...args) |
| Log a message at DEBUG level. More... | |
| template<typename... Args> | |
| void | error (const char *fmt, const Args &...args) |
| Log a message at ERROR level. More... | |
| template<typename... Args> | |
| void | info (const char *fmt, const Args &...args) |
| Log a message at INFO level. More... | |
| template<typename... Args> | |
| void | trace (const char *fmt, const Args &...args) |
| Log a message at TRACE level. More... | |
| template<typename... Args> | |
| void | warn (const char *fmt, const Args &...args) |
| Log a message at WARN level. More... | |
Static Public Member Functions | |
| static void | clear () |
| Clear all loggers information. | |
| static AbstractLogger * | get_logger (const std::string &name) |
| Get a logger by its name. More... | |
| static void | initialize () |
| Initialize the logging framework with default parameters. | |
| static void | initialize (std::istream &is) |
| Initialize the logging framework from an input stream. More... | |
| static void | initialize (const std::string &s) |
| Initialize the logging framework from a string. More... | |
| static void | initialize (const YAML::Node &n) |
| Initialize the logging framework from a YAML node. More... | |
Protected Member Functions | |
| virtual std::string | name ()=0 |
| Get Logger category name. More... | |
| virtual std::string | prepend (const char *fmt)=0 |
| Prepend log message with contextual data. More... | |
Static Protected Member Functions | |
| static spdlog::level::level_enum | level_enum (const std::string &lvl) |
| Convert a string to a log level. More... | |
Static Protected Attributes | |
| static std::shared_ptr< spdlog::logger > | default_logger_ |
| Default logger when no category specified. | |
| static std::map< std::string, std::vector< std::shared_ptr< spdlog::logger > > > | loggers |
| Store spdlog loggers associated to the categories. | |
Class of a generic MAUVE logger.
| void mauve::runtime::AbstractLogger::critical | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
Log a message at CRITICAL level.
| Args | message arguments type |
| fmt | formatted message |
| args | message arguments |
| void mauve::runtime::AbstractLogger::debug | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
Log a message at DEBUG level.
| Args | message arguments type |
| fmt | formatted message |
| args | message arguments |
| void mauve::runtime::AbstractLogger::error | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
Log a message at ERROR level.
| Args | message arguments type |
| fmt | formatted message |
| args | message arguments |
|
static |
Get a logger by its name.
| name | the logger name |
| void mauve::runtime::AbstractLogger::info | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
Log a message at INFO level.
| Args | message arguments type |
| fmt | formatted message |
| args | message arguments |
|
static |
Initialize the logging framework from an input stream.
| is | the input stream containing formatted parameters |
|
static |
Initialize the logging framework from a string.
| s | the input string containing formatted parameters |
|
static |
Initialize the logging framework from a YAML node.
| is | the input YAML configuration |
|
staticprotected |
Convert a string to a log level.
| lvl | a string notation of the level |
|
protectedpure virtual |
Get Logger category name.
Implemented in mauve::runtime::DeployerLogger, mauve::runtime::ResourceLogger, mauve::runtime::ComponentLogger, and mauve::runtime::CategoryLogger.
|
protectedpure virtual |
Prepend log message with contextual data.
| fmt | the original message |
Implemented in mauve::runtime::DeployerLogger, mauve::runtime::ResourceLogger, mauve::runtime::ComponentLogger, and mauve::runtime::CategoryLogger.
| void mauve::runtime::AbstractLogger::trace | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
Log a message at TRACE level.
| Args | message arguments type |
| fmt | formatted message |
| args | message arguments |
| void mauve::runtime::AbstractLogger::warn | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
Log a message at WARN level.
| Args | message arguments type |
| fmt | formatted message |
| args | message arguments |