41 #ifndef __OPENFLUID_TOOLS_FILELOGGER_HPP__
42 #define __OPENFLUID_TOOLS_FILELOGGER_HPP__
58 std::mutex m_LogMutex;
60 std::ofstream m_LogFile;
62 unsigned int m_InfosCount;
64 unsigned int m_WarningsCount;
72 enum class LogType {INFO_MSG, WARNING_MSG, ERROR_MSG, DEBUG_MSG };
81 void init(
const std::string& FilePath,
bool Overwrite=
true);
87 void add(
LogType LType,
const std::string& Context,
const std::string& Msg);
90 {
return m_InfosCount; }
96 {
return m_WarningsCount; }
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: ApplicationException.hpp:47