log4tango::LogStream(3)

πŸ“¦
version 9.3.4 Β· 2 versions
, in debian bookworm

πŸ’– 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 a LogStreamBuf called stream_buf.
  • virtual ~LogStream () β€” the destructor. it's virtual, she's flexible like that.
  • LogStream & operator<< (const LogInitiator &) β€” the << operator, but make it LogInitiator.
  • template<typename T > LogStream & operator<< (const T &t) β€” templated <<, so it eats literally any type T. it's giving versatile.
  • LogStream & operator<< (LogSeparator &) β€” and another <<, this time for a LogSeparator.

πŸ™ˆ Protected Attributes

  • threading::RecursiveMutex _rmutex β€” a recursive mutex, protected, for the thread-safety vibes.
  • std::ostream _ostream β€” a std::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