#include <StdLog.h>
Public Member Functions | |
CStdStringbuf (pthread_mutex_t *globalLogLock=NULL) | |
void | enableConsoleOutput (bool bEnabled) |
void | enableFileOutput (bool bEnabled, const std::string &filename="") |
void | enableTimeStamping (bool enabled) |
void | flushFileOutput () |
std::string & | headerText () |
void | setHeaderColor (int headerColor) |
void | setHeaderText (const std::string &headerText) |
void | setMessageColor (int messageColor) |
void | setSystemHeader (const std::string &text) |
~CStdStringbuf () | |
Protected Member Functions | |
virtual int | sync () |
Protected Attributes | |
FILE * | mFileOut |
pthread_mutex_t * | mGlobalLogLock |
int | mHeaderColor |
std::string | mHeaderText |
int | mMessageColor |
bool | mOutputToConsole |
bool | mOutputToFile |
std::string | mSystemHeader |
bool | mTimeStamping |
CStdStringbuf::CStdStringbuf | ( | pthread_mutex_t * | globalLogLock = NULL | ) | [inline] |
CStdStringbuf::~CStdStringbuf | ( | ) | [inline] |
void CStdStringbuf::enableConsoleOutput | ( | bool | bEnabled | ) | [inline] |
void CStdStringbuf::enableFileOutput | ( | bool | bEnabled, |
const std::string & | filename = "" |
||
) | [inline] |
void CStdStringbuf::enableTimeStamping | ( | bool | enabled | ) | [inline] |
void CStdStringbuf::flushFileOutput | ( | ) | [inline] |
std::string& CStdStringbuf::headerText | ( | ) | [inline] |
void CStdStringbuf::setHeaderColor | ( | int | headerColor | ) | [inline] |
void CStdStringbuf::setHeaderText | ( | const std::string & | headerText | ) | [inline] |
void CStdStringbuf::setMessageColor | ( | int | messageColor | ) | [inline] |
void CStdStringbuf::setSystemHeader | ( | const std::string & | text | ) | [inline] |
virtual int CStdStringbuf::sync | ( | ) | [inline, protected, virtual] |
FILE* CStdStringbuf::mFileOut [protected] |
pthread_mutex_t* CStdStringbuf::mGlobalLogLock [protected] |
int CStdStringbuf::mHeaderColor [protected] |
std::string CStdStringbuf::mHeaderText [protected] |
int CStdStringbuf::mMessageColor [protected] |
bool CStdStringbuf::mOutputToConsole [protected] |
bool CStdStringbuf::mOutputToFile [protected] |
std::string CStdStringbuf::mSystemHeader [protected] |
bool CStdStringbuf::mTimeStamping [protected] |