Skip to content

Commit

Permalink
Logger updates (#139)
Browse files Browse the repository at this point in the history
* No EOL,  no flush, no register in Loggers

Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero authored Aug 27, 2024
1 parent 823d9ec commit 108a052
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions log/src/Logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_formatter>(
"%+", spdlog::pattern_time_type::local, std::string(""));
this->dataPtr->logger->set_formatter(std::move(f));
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 108a052

Please sign in to comment.