#ifndef ERRORLOGGING_H_INCLUDED #define ERRORLOGGING_H_INCLUDED #include #include class Zstring; namespace FreeFileSync { class ErrorLogging { public: ErrorLogging() : errorCount(0) {} void logInfo( const wxString& infoMessage); void logWarning( const wxString& warningMessage); void logError( const wxString& errorMessage); void logFatalError(const wxString& errorMessage); int errorsTotal() { return errorCount; } const std::vector& getFormattedMessages() const { return formattedMessages; } size_t messageCount() { return formattedMessages.size(); } private: wxString assembleMessage(const wxString& prefix, const wxString& message); std::vector formattedMessages; //list of non-resolved errors and warnings int errorCount; }; } #endif // ERRORLOGGING_H_INCLUDED