BMA Server Framework
|
#include <Log.h>
Public Member Functions | |
Log (ConsoleServer *consoleServer) | |
Log (File *logFile) | |
Log (int level) | |
~Log () | |
Public Attributes | |
bool | output = false |
![]() | |
std::string | name |
std::string | tag |
Static Public Attributes | |
static ConsoleServer * | consoleServer = NULL |
static File * | 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.
core::Log::Log | ( | ConsoleServer * | consoleServer | ) |
Constructor method that accepts a pointer to the applications console server. This enables the Log 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. |
core::Log::Log | ( | File * | 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.
core::Log::Log | ( | 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: Log(LOG_INFO) << "This is a log message.";
core::Log::~Log | ( | ) |
The destructor for the log object.
|
static |
Set the consoleServer to point to the instantiated ConsoleServer object for the application.
|
static |
Specify a File 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.