|
BMA Server Framework
|
#include <BMALog.h>


Public Member Functions | |
| BMALog (BMAConsoleServer *consoleServer) | |
| BMALog (BMAFile *logFile) | |
| BMALog (int level) | |
| ~BMALog () | |
Public Attributes | |
| bool | output = false |
Public Attributes inherited from BMAObject | |
| std::string | name |
| std::string | tag |
Static Public Attributes | |
| static BMAConsoleServer * | consoleServer = NULL |
| static BMAFile * | logFile = NULL |
| static int | seq = 0 |
Provides easy to access and use logging features to maintain a history of activity and provide information for activity debugging.
| BMALog::BMALog | ( | BMAConsoleServer * | consoleServer | ) |
Constructor method that accepts a pointer to the applications console server. This enables the BMALog object to send new log messages to the connected console sessions.
| consoleServer | a pointer to the console server that will be used to echo log entries. |
| BMALog::BMALog | ( | BMAFile * | logFile | ) |
Constructor method accepts a file object that will be used to echo all log entries. This provides a permanent disk file record of all logged activity.
| BMALog::BMALog | ( | int | level | ) |
Constructor method that is used to send a message to the log.
| level | the logging level to associate with this message. |
To send log message: BMALog(LOG_INFO) << "This is a log message.";
| BMALog::~BMALog | ( | ) |
The destructor for the log object.
|
static |
Set the consoleServer to point to the instantiated BMAConsoleServer object for the application.
|
static |
Specify a BMAFile object where the log entries will be written as a permanent record to disk.
|
static |
A meaningless sequenctial number that starts from - at the beginning of the logging process.
1.8.13