Class sdm::MultiLogger
Class List > sdm > MultiLogger
The multi logger will print logs in several loggers.
#include <logger.hpp>
Inherits the following classes: sdm::BaseLogger, std::vector< std::shared_ptr< Logger > >
Public Functions
Type | Name |
---|---|
MultiLogger (const std::vector< std::shared_ptr< Logger >> & loggers) | |
MultiLogger (const std::initializer_list< std::shared_ptr< Logger >> & loggers) | |
void | log (TData... vals) Record values in each loggers. |
Public Functions inherited from sdm::BaseLogger
See sdm::BaseLogger
Type | Name |
---|---|
void | log (TData... vals) Record values. |
Public Functions Documentation
function MultiLogger [1/2]
inline sdm::MultiLogger::MultiLogger (
const std::vector< std::shared_ptr< Logger >> & loggers
)
function MultiLogger [2/2]
inline sdm::MultiLogger::MultiLogger (
const std::initializer_list< std::shared_ptr< Logger >> & loggers
)
function log
template<class... TData>
inline void sdm::MultiLogger::log (
TData... vals
)
Go over all sub-loggers and record input values in each of them.
Template parameters:
TData...
the types of input values
Parameters:
vals
the values to log
The documentation for this class was generated from the following file src/sdm/utils/logging/logger.hpp