File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ std::string Logger::getLevel() const {
7373 return std::string { level.begin (), level.end () };
7474}
7575
76- void Logger::logProfile (const std::string& name, double duration_ms) const {
76+ void Logger::logProfile (const std::string & name, double duration_ms) const {
7777 std::string mutable_name = name;
7878
7979 std::ranges::replace (mutable_name, ' :' , ' _' );
@@ -89,15 +89,14 @@ void Logger::logProfile(const std::string& name, double duration_ms) const {
8989 const auto profile_logger = std::make_shared<spdlog::logger>(mutable_name, file_sink);
9090 profile_loggers_[filename] = profile_logger;
9191 profile_logger->info (" Function {} executed in {} ms" , name, duration_ms);
92- } catch (const spdlog::spdlog_ex& ex) {
92+ } catch (const spdlog::spdlog_ex & ex) {
9393 error (" Profile log initialization failed: {}" , ex.what ());
9494 }
9595 } else {
9696 it->second ->info (" Function {} executed in {} ms" , mutable_name, duration_ms);
9797 }
9898}
9999
100-
101100// Função para limpar logs antigos
102101void Logger::cleanOldLogs (const std::string &logDirectory, int days) const {
103102 namespace fs = std::filesystem;
You can’t perform that action at this time.
0 commit comments