cAudio  2.3.0
3d Audio Engine
cFileLogReceiver.h
1 // Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
2 // This file is part of the "cAudio Engine"
3 // For conditions of distribution and use, see copyright notice in cAudio.h
4 
5 #pragma once
6 
7 #include "ILogReceiver.h"
8 #include "cAudioDefines.h"
9 
10 #if CAUDIO_COMPILE_WITH_FILE_LOG_RECEIVER == 1
11 namespace cAudio
12 {
13 
14  class cFileLogReceiver : public ILogReceiver
15  {
16  public:
17  cFileLogReceiver(const char *lFilePath);
18  ~cFileLogReceiver();
19 
20  bool OnLogMessage(const char* sender, const char* message, LogLevel level, float time);
21 
22  private:
23 
24  bool firsttime;
25  const char *logFilePath;
26  };
27 };
28 #endif
cAudio
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16
cAudio::LogLevel
LogLevel
Enum of all supported log levels in cAudio.
Definition: ILogReceiver.h:11