|
PLearn 0.1
|
Default implementation of PL_LogPlugin :: outputs to specified PStream (perr by default) More...
#include <pl_log.h>


Public Member Functions | |
| PL_LogPluginPStream (PStream pstream) | |
| virtual PStream & | getStream (PStream::mode_t outmode, const string &module_name, int requested_verbosity) |
Protected Attributes | |
| PStream | m_pstream |
| Actual stream to use. | |
Default implementation of PL_LogPlugin :: outputs to specified PStream (perr by default)
| PLearn::PL_LogPluginPStream::PL_LogPluginPStream | ( | PStream | pstream | ) | [inline] |
| PStream & PLearn::PL_LogPluginPStream::getStream | ( | PStream::mode_t | outmode, |
| const string & | module_name, | ||
| int | requested_verbosity | ||
| ) | [virtual] |
Implements PLearn::PL_LogPlugin.
Definition at line 64 of file pl_log.cc.
References PLearn::PStream::setOutMode().
{
m_pstream.setOutMode(outmode);
if (! module_name.empty())
m_pstream << '[' << module_name << "] ";
return m_pstream;
}

PStream PLearn::PL_LogPluginPStream::m_pstream [protected] |
1.7.4