00001
00002
00003
00004
00005
00006
00007
00008
00014 #ifndef _FU_ERROR_LOG_H_
00015 #define _FU_ERROR_LOG_H_
00016
00017 #ifndef _FU_ERROR_H_
00018 #include "FUtils/FUError.h"
00019 #endif // _FU_ERROR_H_
00020
00021 class FULogFile;
00022
00029 class FCOLLADA_EXPORT FUErrorLog
00030 {
00031 private:
00032 FULogFile* logFile;
00033 uint32 counts[FUError::LEVEL_COUNT];
00034 FUError::Level minimumLevel;
00035
00036 public:
00043 FUErrorLog(const fchar* logFilename, FUError::Level errorLevel);
00044
00047 ~FUErrorLog();
00048
00052 FULogFile* GetLogFile() { return logFile; }
00053
00058 void QueryNewMessages(uint32& debug, uint32& warnings, uint32& errors);
00059
00060 private:
00061 void OnErrorCallback(FUError::Level level, uint32 errorCode, uint32 argument);
00062 };
00063
00064 #endif // _FU_ERROR_LOG_H_
00065