log4cpp::CategoryStream(3)
π
log4cpp::CategoryStream(3) π
hey bestie!! welcome to the Library Functions Manual page for log4cpp::CategoryStream(3) β manual name folded in right here, no copied header line, weβre keeping it cute. π This one is all about streaming simple types and objects to a category, and itβs lowkey giving βtiny output stream with main character energy.β β¨
πΈ NAME πΈ
log4cpp::CategoryStream β This class enables streaming simple types and objects to a category. literally thatβs the whole vibe. π«Ά
β¨ SYNOPSIS β¨
#include <CategoryStream.hh>
π Public Types π
typedef CategoryStream &(* cspf) (CategoryStream &)β thecspftypedef, exactly as listed. no renaming, no merging, we keep it character-for-character. π
π¦ Public Member Functions π¦
CategoryStream (Category &category, Priority::Value priority)β Construct aCategoryStreamfor givenCategorywith given priority.~CategoryStream ()β Destructor forCategoryStream.Category & getCategory () constβ Returns the destinationCategoryfor this stream.Priority::Value getPriority () const LOG4CPP_NOTHROWβ Returns the priority for this stream.void flush ()β Flush the contents of the stream buffer to theCategoryand empties the buffer.template<typename T> CategoryStream & operator<< (const T &t)β Stream in arbitrary types and objects.CategoryStream & operator<< (const char *t)β this is theconst char *toverload.template<typename T> CategoryStream & operator<< (const std::string &t)β this is thestd::stringoverload.std::streamsize width (std::streamsize wide)β Set the width output onCategoryStream.CategoryStream & operator<< (cspf)β this is thecspfoverload.
π Friends π
LOG4CPP_EXPORT friend CategoryStream & eol (CategoryStream &os)βeolmanipulator.LOG4CPP_EXPORT friend CategoryStream & left (CategoryStream &os)βleftmanipulator.
π Detailed Description π
This class enables streaming simple types and objects to a category.
Use category.errorStream(), etc. to obtain a CategoryStream class.
π§ Member Typedef Documentation π§
typedef CategoryStream &(* log4cpp::CategoryStream::cspf) (CategoryStream &)
π₯ Constructor & Destructor Documentation π₯
log4cpp::CategoryStream::CategoryStream (Category & category, Priority::Value priority)
Construct a CategoryStream for given Category with given priority.
Parameters
categoryβ The category this stream will send log messages to.priorityβ The priority the log messages will get orPriority::NOTSETto silently discard any streamed in messages.
log4cpp::CategoryStream::~CategoryStream ()
Destructor for CategoryStream.
π Member Function Documentation π
void log4cpp::CategoryStream::flush ()
Flush the contents of the stream buffer to the Category and empties the buffer.
Category & log4cpp::CategoryStream::getCategory () const [inline]
Returns the destination Category for this stream.
Returns
- The
Category.
Priority::Value log4cpp::CategoryStream::getPriority () const [inline]
Returns the priority for this stream.
Returns
- The priority.
CategoryStream & log4cpp::CategoryStream::operator<< (const char * t)
No extra description on the page for this overload β just the exact signature above. π«Ά
template<typename T> CategoryStream & log4cpp::CategoryStream::operator<< (const std::string & t) [inline]
This is the inline std::string overload.
template<typename T> CategoryStream & log4cpp::CategoryStream::operator<< (const T & t) [inline]
Stream in arbitrary types and objects.
Parameters
tβ The value or object to stream in.
Returns
- A reference to itself.
CategoryStream & log4cpp::CategoryStream::operator<< (cspf pf)
This is the cspf overload.
std::streamsize log4cpp::CategoryStream::width (std::streamsize wide)
Set the width output on CategoryStream.
π Friends And Related Symbol Documentation π
LOG4CPP_EXPORT friend CategoryStream & eol (CategoryStream & os) [friend]
eol manipulator.
LOG4CPP_EXPORT friend CategoryStream & left (CategoryStream & os) [friend]
left manipulator.
π Member Data Documentation π
std::ostringstream* log4cpp::CategoryStream::_bufferβ the buffer pointer, exactly as listed. no extra description on the page, bestie. π
π Author π
Generated automatically by Doxygen for log4cpp from the source code.
okay bestie, thatβs the whole page! source/version: log4cpp Version 1.1. date: not listed on this page, so Iβm not inventing one. page: log4cpp::CategoryStream(3) ππ«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: log4cpp-devel 1.1.4-bp160.1.12 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms