ModbusSMA
v1.0.0
|
Namespace for logging related functions. More...
Typedefs | |
typedef std::shared_ptr< spdlog::logger > | LOGGER |
Typedef for the spdlog logger. | |
Functions | |
LOGGER | initialize (std::vector< spdlog::sink_ptr > _sinks={}) |
Initializes the logger for the ModbusSMA library. More... | |
LOGGER | get () |
Returns the logger used in the modbusSMA library. More... | |
Namespace for logging related functions.
log::LOGGER modbusSMA::log::get | ( | ) |
Returns the logger used in the modbusSMA library.
Default initializes the logger if it is not already initialized.
Definition at line 58 of file Logging.cpp.
log::LOGGER modbusSMA::log::initialize | ( | std::vector< spdlog::sink_ptr > | _sinks = {} | ) |
Initializes the logger for the ModbusSMA library.
If no sinks are specified, the default stdout_color_mt logger is used. Does nothing if the logger already exists.
_sinks | Sinks to add to the logger |
Definition at line 36 of file Logging.cpp.