log4tango::LogStream(3)
π log4tango::LogStream β from the log4tango manual, section 3 π
okay so bestie, sit down, hydrate, because we're talking about log4tango::LogStream and it's genuinely iconic. it's a class, it lives in the log4tango manual (section 3, the library-functions girlies), and it's basically the β¨streamβ¨ you log through. no cap.
β¨ NAME β¨
log4tango::LogStream β that's her. that's the name. periodt.
πΈ SYNOPSIS πΈ
first things first, you gotta pull her in:
#include <LogStream.hh>
π«Ά Public Member Functions
LogStream (LogStreamBuf *stream_buf)β the constructor, obvs. takes a pointer to aLogStreamBufcalledstream_buf.virtual ~LogStream ()β the destructor. it's virtual, she's flexible like that.LogStream & operator<< (const LogInitiator &)β the<<operator, but make itLogInitiator.template<typename T > LogStream & operator<< (const T &t)β templated<<, so it eats literally any typeT. it's giving versatile.LogStream & operator<< (LogSeparator &)β and another<<, this time for aLogSeparator.
π Protected Attributes
threading::RecursiveMutex _rmutexβ a recursive mutex, protected, for the thread-safety vibes.std::ostream _ostreamβ astd::ostream, also protected. the actual stream underneath, iykyk.
π Constructor & Destructor Documentation π
π
log4tango::LogStream::LogStream (LogStreamBuf * stream_buf)
the constructor. you hand her a LogStreamBuf * named stream_buf and she's ready to go. slay.
π
log4tango::LogStream::~LogStream () [virtual]
the destructor, and yes she's [virtual] because we do polymorphism in this house. she cleans up after herself. main character energy fr fr.
π₯ Member Function Documentation π₯
β LogStream & log4tango::LogStream::operator<< (const LogInitiator &) [inline]
this one's [inline]. it takes a const LogInitiator & and hands you back a LogStream &. classic chaining behaviour, we love to see it.
β template<typename T > LogStream & log4tango::LogStream::operator<< (const T & t) [inline]
the templated one!! [inline], templated on typename T, takes const T & t, returns LogStream &. any type, any time. she's not picky, she's just talented. π
β LogStream & log4tango::LogStream::operator<< (LogSeparator &) [inline]
also [inline], takes a LogSeparator & (no const here bestie, note that, it matters), returns LogStream &. separators deserve love too.
π§ Member Data Documentation π§
π std::ostream log4tango::LogStream::_ostream [protected]
a std::ostream named _ostream, and she's [protected]. the stream-y heart of the whole operation.
π threading::RecursiveMutex log4tango::LogStream::_rmutex [protected]
a threading::RecursiveMutex named _rmutex, also [protected]. keeping things safe when the threads start threading. π
π Author π
Generated automatically by Doxygen for log4tango from the source code.
not me getting emotional over auto-generated docs π she was born from the source code and raised by Doxygen. iconic behaviour honestly.
and that's the whole page bestie, every single member, no skips, no gatekeeping π«Ά
Version 5.0.2 β Thu Dec 5 2024 β log4tango::LogStream(3) πβ¨πΈ bye ily, go log something pretty π¦
π¦ 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