caudio/cAudio/Headers/cFileLogReceiver.h

29 lines
677 B
C++

// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
// This file is part of the "cAudio Engine"
// For conditions of distribution and use, see copyright notice in cAudio.h
#pragma once
#include "ILogReceiver.h"
#include "cAudioDefines.h"
#if CAUDIO_COMPILE_WITH_FILE_LOG_RECEIVER == 1
namespace cAudio
{
class cFileLogReceiver : public ILogReceiver
{
public:
cFileLogReceiver(const char *lFilePath);
~cFileLogReceiver();
bool OnLogMessage(const char* sender, const char* message, LogLevel level, float time);
private:
bool firsttime;
const char *logFilePath;
};
};
#endif