

Public Member Functions | |
| virtual void | logCritical (const char *sender, const char *msg,...) |
| Used to log a critical error message to the logging system. | |
| virtual void | logError (const char *sender, const char *msg,...) |
| Used to log an error message to the logging system. | |
| virtual void | logWarning (const char *sender, const char *msg,...) |
| Used to log a warning to the logging system. | |
| virtual void | logInfo (const char *sender, const char *msg,...) |
| Used to log an informational message to the logging system. | |
| virtual void | logDebug (const char *sender, const char *msg,...) |
| Used to log a debug message to the logging system. | |
| 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. | |
| virtual bool | registerLogReceiver (ILogReceiver *receiver, const char *name) |
| Register Log Receiver. | |
| virtual void | unRegisterLogReceiver (const char *name) |
| Unregister a Log Receiver. | |
| virtual bool | isLogReceiverRegistered (const char *name) |
| Returns whether an log receiver is currently registered. | |
| virtual ILogReceiver * | getLogReceiver (const char *name) |
| Returns a registered log receiver. | |
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 |
|
std::map< std::string, ILogReceiver * > | Receivers |
Definition at line 17 of file cLogger.h.
| ILogReceiver * cAudio::cLogger::getLogReceiver | ( | const char * | name | ) | [virtual] |
Returns a registered log receiver.
| name,: | Name of the log receiver to return. |
Implements cAudio::ILogger.
Definition at line 131 of file cLogger.cpp.
| bool cAudio::cLogger::isLogReceiverRegistered | ( | const char * | name | ) | [virtual] |
Returns whether an log receiver is currently registered.
| name,: | Name of the log receiver to check for. |
Implements cAudio::ILogger.
Definition at line 121 of file cLogger.cpp.
| void cAudio::cLogger::logCritical | ( | const char * | sender, | |
| const char * | msg, | |||
| ... | ||||
| ) | [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 23 of file cLogger.cpp.
| void cAudio::cLogger::logDebug | ( | const char * | sender, | |
| const char * | msg, | |||
| ... | ||||
| ) | [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 71 of file cLogger.cpp.
| void cAudio::cLogger::logError | ( | const char * | sender, | |
| const char * | msg, | |||
| ... | ||||
| ) | [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 35 of file cLogger.cpp.
| void cAudio::cLogger::logInfo | ( | const char * | sender, | |
| const char * | msg, | |||
| ... | ||||
| ) | [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 59 of file cLogger.cpp.
| void cAudio::cLogger::logWarning | ( | const char * | sender, | |
| const char * | msg, | |||
| ... | ||||
| ) | [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 47 of file cLogger.cpp.
| bool cAudio::cLogger::registerLogReceiver | ( | ILogReceiver * | receiver, | |
| const char * | name | |||
| ) | [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 100 of file cLogger.cpp.
| void cAudio::cLogger::setLogLevel | ( | const LogLevel & | logLevel | ) | [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 83 of file cLogger.cpp.
| void cAudio::cLogger::unRegisterLogReceiver | ( | const char * | name | ) | [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 109 of file cLogger.cpp.
1.6.2