... | ... | @@ -43,8 +43,8 @@ Unlike the examples above that are free functions, you should use methods of |
|
|
this instance to log messages. For example,
|
|
|
|
|
|
logger->error("This is an error message using my custom process logger!");
|
|
|
logger->info("Binary example: {}", spdlog::to_hex(buf));
|
|
|
logger->warn("Another binary example:{:n}", spdlog::to_hex(std::begin(buf), std::begin(buf) + 10));
|
|
|
logger->info("Binary example: {}", logging::to_hex(buf));
|
|
|
logger->warn("Another binary example:{:n}", logging::to_hex(std::begin(buf), std::begin(buf) + 10));
|
|
|
CORSIKA_LOGGER_DEBUG(logger, "A compile-time removable log message!"); // note: CORSIKA_LOGG*ER* not CORSIKA_LOG
|
|
|
|
|
|
|
... | ... | |