cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
cConsoleLogReceiver.cpp
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#include "cConsoleLogReceiver.h"
6
7#if CAUDIO_COMPILE_WITH_CONSOLE_LOG_RECEIVER == 1
8#include <iostream>
9
10namespace cAudio
11{
12 bool cConsoleLogReceiver::OnLogMessage(const char* sender, const char* message, LogLevel level, float time)
13 {
14 std::cout << sender << ": " << message << std::endl;
15 //std::cout << "[" << LogLevelStrings[level] << "] " << message << std::endl;
16 return true;
17 }
18};
19
20#endif
21
22
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16
LogLevel
Enum of all supported log levels in cAudio.
Definition: ILogReceiver.h:11