Skip to content

Commit

Permalink
added PDebug.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisPalacios committed Mar 6, 2024
1 parent 3aa55e0 commit 60a925a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/libparchis/PDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#include "PDebug.h"
#include <cstring>
#include <fmt/core.h>
#include <spdlog/spdlog.h>
#include <stdarg.h>

//---------------------------------------------------------------------------
Expand Down Expand Up @@ -154,8 +156,13 @@ void PDebug::print(int dbg_level, std::string dbg_msg)
//std::cout << dbgMsg; // << std::endl;

// Show it on Console
std::cout << "PDebug(" << dbg_level << ") " << callerName << ": "
<< dbg_msg.c_str() << std::endl;
// std::cout << "PDebug(" << dbg_level << ") " << callerName << ": "
// << dbg_msg.c_str() << std::endl;


auto mensaje =
fmt::format("PDebug({}) {}: {}", dbg_level, callerName, dbg_msg);
spdlog::info(mensaje);
}
}

Expand Down

0 comments on commit 60a925a

Please sign in to comment.