#include <Log.h>
Public Member Functions | |
Log () | |
Log (const char *pMethodName) | |
virtual | ~Log () |
Log & | operator<< (char *pText) |
Log & | operator<< (int32 value) |
Log & | operator<< (uint32 value) |
Log & | operator<< (bool value) |
Log & | operator<< (void *pObject) |
void | record (int32 align, const char *pText, const char *pMethodName) |
const char * | toString () |
Static Public Member Functions | |
static void | memAlloc (char *pComponent, char *pFile, int32 line) |
static void | assertMsg (const char *pErrorType, const char *pFile, int32 line) |
static void | closeLogs () |
Static Public Attributes | |
static Log | log |
Log::Log | ( | ) |
Constructor
Log::Log | ( | const char * | pMethodName | ) | [explicit] |
Constructor
virtual Log::~Log | ( | ) | [virtual] |
Destructor
Log& Log::operator<< | ( | char * | pText | ) |
Operator overload to string
Log& Log::operator<< | ( | int32 | value | ) |
Operator overload to signed integer
Log& Log::operator<< | ( | uint32 | value | ) |
Operator overload to unsigned integer
Log& Log::operator<< | ( | bool | value | ) |
Operator overload to boolean
Log& Log::operator<< | ( | void * | pObject | ) |
Operator overload to void*
void Log::record | ( | int32 | align, | |
const char * | pText, | |||
const char * | pMethodName | |||
) |
This method is used to output stacktrace.
align | align the line. | |
action | the action of line. | |
methodName | the method name. |
static void Log::memAlloc | ( | char * | pComponent, | |
char * | pFile, | |||
int32 | line | |||
) | [static] |
This method is used to output memory allocation statements.
pComponent | the component name to be displayed. | |
pFile | the caller file. | |
line | the caller line. | |
ptr | the pointer. | |
size | the size. |
MEMORY_FILE_LOG definition
static void Log::assertMsg | ( | const char * | pErrorType, | |
const char * | pFile, | |||
int32 | line | |||
) | [static] |
This method is used to output assertions.
pErrorType | type of error. | |
pFile | the caller file. | |
line | the caller line. |
static void Log::closeLogs | ( | ) | [static] |
Used to close all the logs.
const char* Log::toString | ( | ) | [virtual] |