cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
ILogger.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
10namespace cAudio
11{
13 class ILogger
14 {
15 public:
16 ILogger() { }
17 virtual ~ILogger() { }
18
20
23 virtual void logCritical( const char* sender, const char *msg, ... ) = 0;
24
26
29 virtual void logError( const char* sender, const char *msg, ... ) = 0;
30
32
35 virtual void logWarning( const char* sender, const char *msg, ... ) = 0;
36
38
41 virtual void logInfo( const char* sender, const char *msg, ... ) = 0;
42
44
47 virtual void logDebug( const char* sender, const char *msg, ... ) = 0;
48
50 virtual const LogLevel& getLogLevel() const = 0;
51
53
55 virtual void setLogLevel( const LogLevel& logLevel ) = 0;
56
58
63 virtual bool registerLogReceiver(ILogReceiver* receiver, const char* name) = 0;
64
66
68 virtual void unRegisterLogReceiver(const char* name) = 0;
69
71
73 virtual bool isLogReceiverRegistered(const char* name) = 0;
74
76
79 virtual ILogReceiver* getLogReceiver(const char* name) = 0;
80 };
81};
82
Interface for receiving log messages and relaying them to some kind of output device or stream.
Definition: ILogReceiver.h:33
Interface for all logging operations in cAudio.
Definition: ILogger.h:14
virtual void logInfo(const char *sender, const char *msg,...)=0
Used to log an informational message to the logging system.
virtual bool registerLogReceiver(ILogReceiver *receiver, const char *name)=0
Register Log Receiver.
virtual const LogLevel & getLogLevel() const =0
Returns the minimum log level that will be sent to the log receivers.
virtual ILogReceiver * getLogReceiver(const char *name)=0
Returns a registered log receiver.
virtual void logDebug(const char *sender, const char *msg,...)=0
Used to log a debug message to the logging system.
virtual void logCritical(const char *sender, const char *msg,...)=0
Used to log a critical error message to the logging system.
virtual bool isLogReceiverRegistered(const char *name)=0
Returns whether an log receiver is currently registered.
virtual void logWarning(const char *sender, const char *msg,...)=0
Used to log a warning to the logging system.
virtual void unRegisterLogReceiver(const char *name)=0
Unregister a Log Receiver.
virtual void setLogLevel(const LogLevel &logLevel)=0
Sets the minimum log level that the engine will send to log receivers.
virtual void logError(const char *sender, const char *msg,...)=0
Used to log an error message to the logging system.
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16
LogLevel
Enum of all supported log levels in cAudio.
Definition: ILogReceiver.h:11