Public Member Functions | |
virtual void | logCritical (const char *sender, const char *msg,...) |
Used to log a critical error message to the logging system. More... | |
virtual void | logError (const char *sender, const char *msg,...) |
Used to log an error message to the logging system. More... | |
virtual void | logWarning (const char *sender, const char *msg,...) |
Used to log a warning to the logging system. More... | |
virtual void | logInfo (const char *sender, const char *msg,...) |
Used to log an informational message to the logging system. More... | |
virtual void | logDebug (const char *sender, const char *msg,...) |
Used to log a debug message to the logging system. More... | |
virtual const LogLevel & | getLogLevel () const |
Returns the minimum log level that will be sent to the log receivers. | |
virtual void | setLogLevel (const LogLevel &logLevel) |
Sets the minimum log level that the engine will send to log receivers. More... | |
virtual bool | registerLogReceiver (ILogReceiver *receiver, const char *name) |
Register Log Receiver. More... | |
virtual void | unRegisterLogReceiver (const char *name) |
Unregister a Log Receiver. More... | |
virtual bool | isLogReceiverRegistered (const char *name) |
Returns whether an log receiver is currently registered. More... | |
virtual ILogReceiver * | getLogReceiver (const char *name) |
Returns a registered log receiver. More... | |
Protected Types | |
typedef cAudioMap < cAudioString, ILogReceiver * > ::Type::iterator | ReceiversIterator |
Protected Member Functions | |
void | broadcastMessage (LogLevel level, const char *sender, const char *msg, va_list args) |
Protected Attributes | |
cAudioMutex | Mutex |
unsigned long | StartTime |
char | TempTextBuf [2048] |
LogLevel | MinLogLevel |
cAudioMap< cAudioString, ILogReceiver * >::Type | Receivers |
|
virtual |
Returns a registered log receiver.
name,: | Name of the log receiver to return. |
Implements cAudio::ILogger.
Definition at line 127 of file cLogger.cpp.
|
virtual |
Returns whether an log receiver is currently registered.
name,: | Name of the log receiver to check for. |
Implements cAudio::ILogger.
Definition at line 117 of file cLogger.cpp.
|
virtual |
Used to log a critical error message to the logging system.
sender,: | Name of the class/component sending the message. |
msg,: | The message to send. |
Implements cAudio::ILogger.
Definition at line 19 of file cLogger.cpp.
|
virtual |
Used to log a debug message to the logging system.
sender,: | Name of the class/component sending the message. |
msg,: | The message to send. |
Implements cAudio::ILogger.
Definition at line 67 of file cLogger.cpp.
|
virtual |
Used to log an error message to the logging system.
sender,: | Name of the class/component sending the message. |
msg,: | The message to send. |
Implements cAudio::ILogger.
Definition at line 31 of file cLogger.cpp.
|
virtual |
Used to log an informational message to the logging system.
sender,: | Name of the class/component sending the message. |
msg,: | The message to send. |
Implements cAudio::ILogger.
Definition at line 55 of file cLogger.cpp.
|
virtual |
Used to log a warning to the logging system.
sender,: | Name of the class/component sending the message. |
msg,: | The message to send. |
Implements cAudio::ILogger.
Definition at line 43 of file cLogger.cpp.
|
virtual |
Register Log Receiver.
Note: Any class registered will become owned by the internal thread.
If threading is enabled, you MUST make the receiver threadsafe if you plan to access it in your application while it is registered.
receiver,: | Pointer to your implementation of ILogReceiver. |
name,: | Name of the log receiver. |
Implements cAudio::ILogger.
Definition at line 96 of file cLogger.cpp.
|
virtual |
Sets the minimum log level that the engine will send to log receivers.
Primarily used to prevent too much verbose information from being sent to disk/console.
logLevel,: | LogLevel to set as the new minimum. Anything equal to or greater than this level will be logged. |
Implements cAudio::ILogger.
Definition at line 79 of file cLogger.cpp.
|
virtual |
Unregister a Log Receiver.
Will NOT delete any user added receiver, you must do that yourself.
name,: | Name of the log receiver to remove. |
Implements cAudio::ILogger.
Definition at line 105 of file cLogger.cpp.