table of contents
- bookworm 9.3.4+dfsg1-2
log4tango::LoggerStream(3) | log4tango | log4tango::LoggerStream(3) |
NAME¶
log4tango::LoggerStream
SYNOPSIS¶
#include <LoggerStream.hh>
Public Member Functions¶
LOG4TANGO_EXPORT LoggerStream (Logger
&logger, Level::Value level, bool filter=true)
Construct a LoggerStream for given Logger with given level.
LOG4TANGO_EXPORT ~LoggerStream ()
Destructor for LoggerStream&) LOG4TANGO_EXPORT Logger
& get_logger (void) const
Returns the destination Logger for this stream. LOG4TANGO_EXPORT
Level::Value get_level (void) const
Returns the level for this stream. LOG4TANGO_EXPORT LoggerStream
& operator<< (LOG4TANGO_UNUSED(LogInitiator
&i))
Streams in a Initiator. LOG4TANGO_EXPORT LoggerStream &
operator<< (LOG4TANGO_UNUSED(LogSeparator
&s))
Streams in a Separator.Sends the contents of the stream buffer to the
Logger with set level and empties the buffer. LOG4TANGO_EXPORT
LoggerStream & operator<<
(LOG4TANGO_UNUSED(ls_terminator endoflog))
Streams in a ls_manipulator. LOG4TANGO_EXPORT void flush (void)
Flush the contents of the stream buffer to the Logger and empties the
buffer. LOG4TANGO_EXPORT LoggerStream &
operator<< (std::ios_base &(*_F)(std::ios_base &))
Streams in a std stream manipulator. template<typename T >
LoggerStream & operator<< (const T &t)
Stream in arbitrary types and objects.
Constructor & Destructor Documentation¶
log4tango::LoggerStream::LoggerStream (Logger & logger, Level::Value level, bool filter = true)¶
Construct a LoggerStream for given Logger with given level.
Parameters
level The level the log messages will get or Level::NOTSET to silently discard any streamed in messages.
filter The filter flag
log4tango::LoggerStream::~LoggerStream ()¶
Destructor for LoggerStream&)
Member Function Documentation¶
void log4tango::LoggerStream::flush (void)¶
Flush the contents of the stream buffer to the Logger and empties the buffer.
LOG4TANGO_EXPORT Level::Value log4tango::LoggerStream::get_level (void) const [inline]¶
Returns the level for this stream.
Returns
LOG4TANGO_EXPORT Logger& log4tango::LoggerStream::get_logger (void) const [inline]¶
Returns the destination Logger for this stream.
Returns
template<typename T > LoggerStream& log4tango::LoggerStream::operator<< (const T & t) [inline]¶
Stream in arbitrary types and objects.
Parameters
Returns
LOG4TANGO_EXPORT LoggerStream& log4tango::LoggerStream::operator<< (LOG4TANGO_UNUSED(LogInitiator &i)) [inline]¶
Streams in a Initiator. Just a trick to return a ref to self.
Returns
LOG4TANGO_EXPORT LoggerStream& log4tango::LoggerStream::operator<< (LOG4TANGO_UNUSED(LogSeparator &s)) [inline]¶
Streams in a Separator.Sends the contents of the stream buffer to the Logger with set level and empties the buffer.
Returns
LOG4TANGO_EXPORT LoggerStream& log4tango::LoggerStream::operator<< (LOG4TANGO_UNUSED(ls_terminator endoflog)) [inline]¶
Streams in a ls_manipulator. Sends the contents of the stream buffer to the Logger with set level and empties the buffer.
Returns
LOG4TANGO_EXPORT LoggerStream& log4tango::LoggerStream::operator<< (std::ios_base &(*)(std::ios_base &) _F) [inline]¶
Streams in a std stream manipulator.
Parameters
Returns
Author¶
Generated automatically by Doxygen for log4tango from the source code.
Wed Sep 2 2020 | Version 5.0.2 |