#include <Log2.h>
Public Member Functions | |
CLog2 (const std::string &name) | |
void | enableConsoleOutput (bool bEnabled) |
void | enableFileOutput (bool bEnabled, const std::string &filename="") |
void | enableTimeStamping (bool bEnabled) |
void | flushFileOutput () |
ELogLevel | getLevel () const |
CLogStream & | getStream () |
const std::string & | name () |
CLogStream & | operator() (ELogLevel level) |
CLog2 & | operator= (const CLog2 &obj) |
void | setHeaderColor (int color) |
void | setHeaderText (const std::string &text) |
void | setLevel (ELogLevel level) |
Private Attributes | |
std::string | mName |
CLogStream & | mStream |
CLog2::CLog2 | ( | const std::string & | name | ) | [inline] |
void CLog2::enableConsoleOutput | ( | bool | bEnabled | ) | [inline] |
void CLog2::enableFileOutput | ( | bool | bEnabled, |
const std::string & | filename = "" |
||
) | [inline] |
void CLog2::enableTimeStamping | ( | bool | bEnabled | ) | [inline] |
void CLog2::flushFileOutput | ( | ) | [inline] |
ELogLevel CLog2::getLevel | ( | ) | const [inline] |
CLogStream& CLog2::getStream | ( | ) | [inline] |
const std::string& CLog2::name | ( | ) | [inline] |
CLogStream& CLog2::operator() | ( | ELogLevel | level | ) | [inline] |
void CLog2::setHeaderColor | ( | int | color | ) | [inline] |
void CLog2::setHeaderText | ( | const std::string & | text | ) | [inline] |
void CLog2::setLevel | ( | ELogLevel | level | ) | [inline] |
std::string CLog2::mName [private] |
CLogStream& CLog2::mStream [private] |