LogImpl_t is used for internal use only, see Log_t instead.
Definition at line 77 of file fsLog.cpp.
Public Member Functions | |
LogImpl_t (unsigned int fMode, size_t uHist, const char *pszFile) | |
virtual | ~LogImpl_t () |
virtual void | SetTgt (Log_t *pTgt) |
Sets a new target log (dumps history, redirects future records). | |
Protected Member Functions | |
virtual void | RegSrc (Log_t *pSrc, bool bReg=true) |
Links / unlinks log instances. | |
virtual void | PushLn (const char *pszText, bool bMsgBrk=false) |
Logs a text line. | |
Private Types | |
typedef std::vector< Log_t * > | TSrcs |
typedef std::deque< std::string > | Hist_t |
Private Member Functions | |
LogImpl_t () | |
LogImpl_t (const LogImpl_t &) | |
LogImpl_t & | operator= (const LogImpl_t &) |
Private Attributes | |
unsigned int | m_fMode |
Configuration flags. | |
Log_t * | m_pTgt |
Target log. | |
TSrcs | m_Srcs |
List of log sources. | |
void * | m_hFile |
File handle (if a log file is bound). | |
Hist_t | m_Hist |
Log history. | |
size_t | m_uHist |
Maximum depth of log history. | |
size_t | m_uWrns |
Number of caught warnings. | |
size_t | m_uErrs |
Number of caught errors. |
typedef std::deque<std::string> fs::sys::LogImpl_t::Hist_t [private] |
typedef std::vector<Log_t *> fs::sys::LogImpl_t::TSrcs [private] |
LogImpl_t::LogImpl_t | ( | unsigned int | fMode, | |
size_t | uHist, | |||
const char * | pszFile | |||
) |
LogImpl_t::~LogImpl_t | ( | ) | [virtual] |
fs::sys::LogImpl_t::LogImpl_t | ( | ) | [private] |
fs::sys::LogImpl_t::LogImpl_t | ( | const LogImpl_t & | ) | [private] |
void LogImpl_t::PushLn | ( | const char * | pszText, | |
bool | bMsgBrk = false | |||
) | [protected, virtual] |
Logs a text line.
Reimplemented from fs::sys::Log_t.
Definition at line 187 of file fsLog.cpp.
References FS_ASSERT_MSG, fs::sys::Log_t::LOG_DBGOUT, fs::sys::Log_t::LOG_HIST, fs::sys::Log_t::LOG_RTMBRK, fs::sys::Log_t::LOG_STDOUT, m_fMode, m_hFile, m_Hist, m_pTgt, m_uErrs, m_uHist, m_uWrns, and fs::sys::Log_t::PushLn().
Here is the call graph for this function:
void LogImpl_t::RegSrc | ( | Log_t * | pSrc, | |
bool | bReg = true | |||
) | [protected, virtual] |
Links / unlinks log instances.
Reimplemented from fs::sys::Log_t.
void LogImpl_t::SetTgt | ( | Log_t * | pTgt | ) | [virtual] |
Sets a new target log (dumps history, redirects future records).
pTgt | A new log target or 0 to reset current link. |
Reimplemented from fs::sys::Log_t.
Definition at line 150 of file fsLog.cpp.
References m_Hist, m_pTgt, fs::sys::Log_t::PushLn(), and fs::sys::Log_t::RegSrc().
Here is the call graph for this function:
unsigned int fs::sys::LogImpl_t::m_fMode [private] |
void* fs::sys::LogImpl_t::m_hFile [private] |
Hist_t fs::sys::LogImpl_t::m_Hist [private] |
Log_t* fs::sys::LogImpl_t::m_pTgt [private] |
TSrcs fs::sys::LogImpl_t::m_Srcs [private] |
size_t fs::sys::LogImpl_t::m_uErrs [private] |
size_t fs::sys::LogImpl_t::m_uHist [private] |
size_t fs::sys::LogImpl_t::m_uWrns [private] |