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

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

#include <log.hh>

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

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

Public Methods

 TLog (void)
 Builds a new instance.

TLog & also (std::basic_ostream< TChar, TTraits > &rtOSTREAM)
template<typename TItem> void debug (TItem tITEM)
TLog & erase (const std::basic_ostream< TChar, TTraits > &rktOSTREAM)
TLog & operator<< (MManipulator mMANIP_FUNCTION)
TLog & operator<< (TLog &(*mMANIP_FUNCTION)(TLog &))
void setFacility (ELogFacility eLOG_FACILITY)
void setLevel (ELogLevel eLOG_LEVEL)
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::TLog< TChar, TTraits >

Log stream class. It uses the method of the class system::ISystem system::ISystem::writeLogEntry() and thus the operating system syslog facility.
See also:
system::ISystem::writeLogEntry().

Definition at line 283 of file log.hh.


Member Function Documentation

template<typename TChar, typename TTraits = std::char_traits<TChar>>
TLog& mpcl::util::logging::TLog< 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 318 of file log.hh.

References mpcl::util::logging::TLogStreambuf< TChar, TTraits >::also().

template<typename TChar, typename TTraits = std::char_traits<TChar>>
template<typename TItem>
void mpcl::util::logging::TLog< TChar, TTraits >::debug TItem    tITEM [inline]
 

Writes tITEM using debug log level and user log facility. The currents log and facility levels do not change.

Parameters:
tITEM  Item to write on this log instance.

Definition at line 330 of file log.hh.

References mpcl::util::logging::TBaseLog::ELogFacility, mpcl::util::logging::TBaseLog::ELogLevel, mpcl::util::logging::TLog< TChar, TTraits >::getFacility(), mpcl::util::logging::TLog< TChar, TTraits >::getLevel(), mpcl::util::logging::TLog< TChar, TTraits >::setFacility(), and mpcl::util::logging::TLog< TChar, TTraits >::setLevel().

template<typename TChar, typename TTraits = std::char_traits<TChar>>
TLog& mpcl::util::logging::TLog< TChar, TTraits >::erase const std::basic_ostream< TChar, TTraits > &    rktOSTREAM [inline]
 

Disables rktOSTREAM for receiving the information written in this instance.

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

Definition at line 348 of file log.hh.

References mpcl::util::logging::TLogStreambuf< TChar, TTraits >::erase().

template<typename TChar, typename TTraits = std::char_traits<TChar>>
TLog& mpcl::util::logging::TLog< TChar, TTraits >::operator<< TLog< TChar, TTraits > &(*    mMANIP_FUNCTION)(TLog &) [inline]
 

Calls manipulator mMANIP_FUNCTION over this instance.

Parameters:
mMANIP_FUNCTION  Manipulator function.
Returns:
This instance.
See also:
MManipulator.

Definition at line 372 of file log.hh.

template<typename TChar, typename TTraits = std::char_traits<TChar>>
TLog& mpcl::util::logging::TLog< TChar, TTraits >::operator<< MManipulator    mMANIP_FUNCTION [inline]
 

Calls manipulator mMANIP_FUNCTION over this instance.

Parameters:
mMANIP_FUNCTION  Manipulator function.
Returns:
This instance.
See also:
MManipulator.

Definition at line 360 of file log.hh.

References mpcl::util::logging::MManipulator.

template<typename TChar, typename TTraits = std::char_traits<TChar>>
void mpcl::util::logging::TLog< TChar, TTraits >::setFacility ELogFacility    eLOG_FACILITY [inline, virtual]
 

Sets log facility.

Parameters:
eLOG_FACILITY  Log facility.
See also:
system::ISystem::ELogFacility.

Implements mpcl::util::logging::TBaseLog.

Definition at line 382 of file log.hh.

References mpcl::util::logging::TBaseLog::ELogFacility, and mpcl::util::logging::TLogStreambuf< TChar, TTraits >::setFacility().

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

template<typename TChar, typename TTraits = std::char_traits<TChar>>
void mpcl::util::logging::TLog< TChar, TTraits >::setLevel ELogLevel    eLOG_LEVEL [inline, virtual]
 

Sets log level.

Parameters:
eLOG_LEVEL  Log level.
See also:
system::ISystem::ELogLevel.

Implements mpcl::util::logging::TBaseLog.

Definition at line 392 of file log.hh.

References mpcl::util::logging::TBaseLog::ELogLevel, and mpcl::util::logging::TLogStreambuf< TChar, TTraits >::setLevel().

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


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