40 #ifndef __OPENFLUID_UTILS_INTERNALLOGGER_HPP__
41 #define __OPENFLUID_UTILS_INTERNALLOGGER_HPP__
50 #include <openfluid/config.hpp>
71 std::vector<std::string> m_Logs;
73 std::string m_LogPath;
82 void setup(
bool DefaultAsFallback=
true, std::string LogPath=
"",
bool Verbose=
false);
105 if (m_Logs.size() > 0)
107 return m_Logs.back();
#define OPENFLUID_SINGLETON_DEFINITION(T)
Definition: SingletonMacros.hpp:55
Definition: InternalLogger.hpp:60
std::string getLogPath()
Definition: InternalLogger.hpp:93
void setOutput(bool AsFile=true)
Definition: InternalLogger.hpp:98
bool isActivated()
Definition: InternalLogger.hpp:88
std::string getLastLog()
Definition: InternalLogger.hpp:103
void setup(bool DefaultAsFallback=true, std::string LogPath="", bool Verbose=false)
void add(openfluid::tools::FileLogger::LogType LType, const std::string &Context, const std::string &Msg)
#define OPENFLUID_API
Definition: dllexport.hpp:86
void OPENFLUID_API error(const std::string &Context, const std::string &Msg)
void OPENFLUID_API setup(bool DefaultAsFallback=true, std::string LogPath="", bool Verbose=false)
void OPENFLUID_API debug(const std::string &Context, const std::string &Msg)
void OPENFLUID_API warning(const std::string &Context, const std::string &Msg)
void OPENFLUID_API info(const std::string &Context, const std::string &Msg)
Definition: ApplicationException.hpp:47