JsonLogger class uses spdlog library and yields jsonl format log.
More...
#include <JsonLogger.h>
|
static std::string | format (omnetpp::cMessage const *const msg) |
|
JsonLogger class uses spdlog library and yields jsonl format log.
◆ JsonLogger()
quisp::modules::Logger::JsonLogger::JsonLogger |
( |
std::shared_ptr< spdlog::logger > | logger | ) |
|
◆ ~JsonLogger()
quisp::modules::Logger::JsonLogger::~JsonLogger |
( |
| ) |
|
|
virtual |
◆ format()
std::string quisp::modules::Logger::JsonLogger::format |
( |
omnetpp::cMessage const *const | msg | ) |
|
|
staticprotected |
◆ logBellPairInfo()
void quisp::modules::Logger::JsonLogger::logBellPairInfo |
( |
const std::string & | event_type, |
|
|
int | partner_addr, |
|
|
quisp::modules::QNIC_type | qnic_type, |
|
|
int | qnic_index, |
|
|
int | qubit_index ) |
|
overridevirtual |
◆ logPacket()
void quisp::modules::Logger::JsonLogger::logPacket |
( |
const std::string & | event_type, |
|
|
omnetpp::cMessage const *const | msg ) |
|
overridevirtual |
◆ logQubitState()
void quisp::modules::Logger::JsonLogger::logQubitState |
( |
quisp::modules::QNIC_type | qnic_type, |
|
|
int | qnic_index, |
|
|
int | qubit_index, |
|
|
bool | is_busy, |
|
|
bool | is_allocated ) |
|
overridevirtual |
◆ setModule()
void quisp::modules::Logger::JsonLogger::setModule |
( |
omnetpp::cModule const *const | mod | ) |
|
|
overridevirtual |
◆ setQNodeAddress()
void quisp::modules::Logger::JsonLogger::setQNodeAddress |
( |
int | addr | ) |
|
|
overridevirtual |
◆ _logger
std::shared_ptr<spdlog::logger> quisp::modules::Logger::JsonLogger::_logger |
|
protected |
◆ module
omnetpp::cModule const* quisp::modules::Logger::JsonLogger::module |
|
protected |
◆ module_path
std::string quisp::modules::Logger::JsonLogger::module_path |
|
protected |
◆ qnode_address
int quisp::modules::Logger::JsonLogger::qnode_address = -1 |
|
protected |
The documentation for this class was generated from the following files: