log4tango::LoggerStream(3)
π log4tango::LoggerStream π
okay bestie, so this is a page from the log4tango manual, section 3 β yeah, the library-functions section, the good one β¨. Sit down, grab a boba, we're gonna talk about a stream that logs. It's giving "std::ostream but it's a Logger." Iconic behaviour, honestly.
β¨ NAME β¨
log4tango::LoggerStream β the stream class that pipes your vibes straight into a Logger π«Ά
πΈ SYNOPSIS πΈ
#include <LoggerStream.hh>
π Public Member Functions π
LOG4TANGO_EXPORT LoggerStream (Logger &logger, Level::Value level, bool filter=true)β builds you aLoggerStreamfor the givenLoggerat the given level πLOG4TANGO_EXPORT ~LoggerStream ()β the destructor forLoggerStream&)πLOG4TANGO_EXPORT Logger & get_logger (void) constβ hands you back the destinationLoggerthis stream is feeding πLOG4TANGO_EXPORT Level::Value get_level (void) constβ hands you back the level for this stream βLOG4TANGO_EXPORT LoggerStream & operator<< (LOG4TANGO_UNUSED(LogInitiator &i))β streams in an 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 als_manipulatorπ¦LOG4TANGO_EXPORT void flush (void)β flushes 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, no cap π
π Constructor & Destructor Documentation π
log4tango::LoggerStream::LoggerStream (Logger & logger, Level::Value level, bool filter = true)
Construct a LoggerStream for given Logger with given level. Like, you tell it where to log and how loud β¨
Parameters
- logger β The logger this stream will send log messages to. π¬
- level β The level the log messages will get or
Level::NOTSETto silently discard any streamed in messages. (yes bestie,NOTSET= it goes straight into the void π³οΈ) - filter β The filter flag π¦
log4tango::LoggerStream::~LoggerStream ()
Destructor for LoggerStream&) π bye babes, thanks for the logs
π¦ 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
- The level. π
LOG4TANGO_EXPORT Logger & log4tango::LoggerStream::get_logger (void) const [inline]
Returns the destination Logger for this stream.
Returns
- The
Logger. π«Ά
template<typename T > LoggerStream & log4tango::LoggerStream::operator<< (const T & t) [inline]
Stream in arbitrary types and objects. literally anything you want, it'll take it π
Parameters
- t β The value or object to stream in. π
Returns
- A reference to itself. (it's self-referential like that, main character energy fr)
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. β
π Author π
Generated automatically by Doxygen for log4tango from the source code. π€ (not me writing these by hand, the robots ate, periodt)
okay that's the whole page bestie, and before you go β the footer said Version 5.0.2, dated Thu Dec 5 2024, and the manual name is log4tango (section 3, if you forgot already π). go log something iconic π β¨π¦
π¦ where this page comes from
- debian bookworm: liblog4tango-doc 9.3.4+dfsg1-2+deb12u1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms