40 #ifndef __OPENFLUID_TOOLS_FILELOGGER_HPP__ 41 #define __OPENFLUID_TOOLS_FILELOGGER_HPP__ 61 std::ofstream m_LogFile;
63 unsigned int m_InfosCount;
65 unsigned int m_WarningsCount;
72 enum LogType {LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG };
79 static std::string logTypeToString(
LogType LType);
81 void init(
const std::string& FilePath);
85 void add(
LogType LType,
const std::string& Context,
const std::string& Msg);
88 {
return m_InfosCount; }
94 {
return m_WarningsCount; }
bool isError() const
Definition: FileLogger.hpp:90
unsigned int getWarningsCount() const
Definition: FileLogger.hpp:93
Definition: ApplicationException.hpp:47
Definition: FileLogger.hpp:55
unsigned int getInfosCount() const
Definition: FileLogger.hpp:87
#define OPENFLUID_API
Definition: dllexport.hpp:86
LogType
Definition: FileLogger.hpp:72