Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::util::logging::TLogStreambuf< TChar, TTraits > Class Template Reference

#include <log.hh>

Inheritance diagram for mpcl::util::logging::TLogStreambuf< TChar, TTraits >:

mpcl::util::logging::TBaseLog List of all members.

Public Methods

 TLogStreambuf (void)
 Builds a new instance.

void also (std::basic_ostream< TChar, TTraits > &rtOSTREAM)
void erase (const std::basic_ostream< TChar, TTraits > &rktOSTREAM) throw (TNotFoundException)
int overflow (int iCHAR=EOF)
void setFacility (ELogFacility eLOG_FACILITY)
 Sets log facility.

void setLevel (ELogLevel eLOG_LEVEL)
 Sets log level.

std::streamsize xsputn (const char *pkcSTRING, std::streamsize zSIZE)
ELogLevel getLevel (void) const
 Gets log level.

ELogFacility getFacility (void) const
 Gets log facility.


Detailed Description

template<typename TChar, typename TTraits = std::char_traits<TChar>>
class mpcl::util::logging::TLogStreambuf< TChar, TTraits >

Streambuf for log class TLog.
See also:
system::ISystem::writeLogMessage().

Definition at line 159 of file log.hh.


Member Function Documentation

template<typename TChar, typename TTraits = std::char_traits<TChar>>
void mpcl::util::logging::TLogStreambuf< TChar, TTraits >::also std::basic_ostream< TChar, TTraits > &    rtOSTREAM [inline]
 

Enables rtOSTREAM for receiving the information written in this instance.

Parameters:
rtOSTREAM  Target std::basic_ostream.
Returns:
This instance.

Definition at line 208 of file log.hh.

Referenced by mpcl::util::logging::TLog< TChar, TTraits >::also().

template<typename TChar, typename TTraits>
void mpcl::util::logging::TLogStreambuf< TChar, TTraits >::erase const std::basic_ostream< TChar, TTraits > &    rktOSTREAM throw (TNotFoundException)
 

Disables rktOSTREAM for receiving the information written in this instance.

Parameters:
rktOSTREAM  Target std::basic_ostream.
Returns:
This instance.
Exceptions:
TNotFoundException  If rktOSTREAM is not included.

Definition at line 466 of file log.hh.

Referenced by mpcl::util::logging::TLog< TChar, TTraits >::erase().

template<typename TChar, typename TTraits>
int mpcl::util::logging::TLogStreambuf< TChar, TTraits >::overflow int    iCHAR = EOF
 

Appends the character designated by iCHAR to the output sequence, if possible.

Returns:
If possible, iCHAR if not, EOF.
See also:
std::streambuf::overflow().

Definition at line 487 of file log.hh.

References mpcl::text::Format().

template<typename TChar, typename TTraits>
std::streamsize mpcl::util::logging::TLogStreambuf< TChar, TTraits >::xsputn const char *    pkcSTRING,
std::streamsize    zSIZE
 

Appends zSIZE characters from pkcSTRING to the log. Whenever a newline appears, the string until that character is logged and then, it start again with the rest of the string in pkcSTRING.

Parameters:
pkcSTRING  Source string.
zSIZE  Size of the source string.
Returns:
The number of characters written.
See also:
std::streambuf::xsputn().

Definition at line 532 of file log.hh.

References mpcl::text::Format().


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18