diff --git a/log/src/Logger.cc b/log/src/Logger.cc index 340693a..e28ec39 100644 --- a/log/src/Logger.cc +++ b/log/src/Logger.cc @@ -61,8 +61,10 @@ Logger::Logger(const std::string &_loggerName) this->dataPtr->logger->set_level(spdlog::level::err); this->dataPtr->logger->flush_on(spdlog::level::err); - spdlog::flush_every(std::chrono::seconds(5)); - spdlog::register_logger(this->dataPtr->logger); + // Disable eol. + auto f = std::make_unique( + "%+", spdlog::pattern_time_type::local, std::string("")); + this->dataPtr->logger->set_formatter(std::move(f)); } /////////////////////////////////////////////////