DOKK / manpages / debian 12 / liblog4tango-doc / log4tango::LoggerStream.3.en
log4tango::LoggerStream(3) log4tango log4tango::LoggerStream(3)

log4tango::LoggerStream

#include <LoggerStream.hh>


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.

Construct a LoggerStream for given Logger with given level.

Parameters

logger The logger this stream will send log messages to.
level The level the log messages will get or Level::NOTSET to silently discard any streamed in messages.
filter The filter flag

Destructor for LoggerStream&)

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

The level.

LOG4TANGO_EXPORT Logger & log4tango::LoggerStream::get_logger (void) const [inline]

Returns the destination Logger for this stream.

Returns

The Logger.

Stream in arbitrary types and objects.

Parameters

t The value or object to stream in.

Returns

A reference to itself.

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

A reference to itself.

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

A reference to itself.

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

A reference to itself.

LOG4TANGO_EXPORT LoggerStream & log4tango::LoggerStream::operator<< (std::ios_base &(*)(std::ios_base &) _F) [inline]

Streams in a std stream manipulator.

Parameters

_F the manipulator function

Returns

a reference to self.

Generated automatically by Doxygen for log4tango from the source code.

Fri Nov 11 2022 Version 5.0.2