2014-08-12 11:05:04 -04:00
|
|
|
|
|
|
|
#include "Logger.h"
|
2015-03-22 10:00:51 -04:00
|
|
|
#include "OSSupport/File.h"
|
2014-08-12 11:05:04 -04:00
|
|
|
|
2014-08-12 16:43:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-12 11:05:04 -04:00
|
|
|
class cFileListener
|
|
|
|
: public cLogger::cListener
|
|
|
|
{
|
2014-08-12 16:43:04 -04:00
|
|
|
public:
|
|
|
|
|
|
|
|
cFileListener();
|
|
|
|
cFileListener(AString a_Filename);
|
|
|
|
|
|
|
|
virtual void Log(AString a_Message, cLogger::eLogLevel a_LogLevel) override;
|
2014-08-12 11:05:04 -04:00
|
|
|
|
2014-08-12 16:43:04 -04:00
|
|
|
private:
|
|
|
|
|
|
|
|
cFile m_File;
|
2014-08-12 11:05:04 -04:00
|
|
|
};
|
|
|
|
|
2014-08-12 16:43:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-06-04 09:13:07 -04:00
|
|
|
cLogger::cListener * MakeConsoleListener(bool a_IsService);
|
2014-08-12 16:43:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|