log4cpp::Category(3)
πΈ log4cpp::Category(3) β Library Functions Manual π
okay bestie, gather round, because this is the page. like, the main character of the whole log4cpp library. no cap. this is log4cpp::Category(3), and she is everything. π
β¨ NAME β¨
log4cpp::Category β this is the central class in the log4j package. that's it. that's the vibe. she's iconic, she's the hub, everyone reports to her. π
β¨ SYNOPSIS β¨
#include <Category.hh>
Inherited by log4cpp::FixedContextCategory. (yes, she has a daughter. proud mom moment. π₯Ή)
π Public Member Functions
virtual ~Category ()β Destructor for Category.virtual const std::string & getName () const LOG4CPP_NOTHROWβ Return the category name.virtual void setPriority (Priority::Value priority)β Set the priority of this Category.virtual Priority::Value getPriority () const LOG4CPP_NOTHROWβ Returns the assigned Priority, if any, for this Category.virtual Priority::Value getChainedPriority () const LOG4CPP_NOTHROWβ Starting from this Category, search the category hierarchy for a set priority and return it.virtual bool isPriorityEnabled (Priority::Value priority) const LOG4CPP_NOTHROWβ Returns true if the chained priority of the Category is equal to or higher than given priority.virtual void addAppender (Appender *appender)β Adds an Appender to this Category.virtual void addAppender (Appender &appender)β Adds an Appender for this Category.void setAppender (Appender *appender)β Adds an Appender to this Category.void setAppender (Appender &appender)β Adds an Appender for this Category.virtual Appender * getAppender () constβ Returns the first Appender for this Category, orNULLif no Appender has been set.virtual Appender * getAppender (const std::string &name) constβ Returns the specified Appender for this Category, orNULLif the Appender is not attached to this Category.virtual AppenderSet getAllAppenders () constβ Returns the set of Appenders currently attached to this Catogory. (that spelling is hers, don't @ me π«Ά)virtual void removeAllAppenders ()β Removes all appenders for this Category.virtual void removeAppender (Appender *appender)β Removes specified appender for this Category.virtual bool ownsAppender () const LOG4CPP_NOTHROWβ Returns true if the Category owns the first Appender in its Appender set.virtual bool ownsAppender (Appender *appender) const LOG4CPP_NOTHROWβ Returns true if the Category owns the Appender.virtual void callAppenders (const LoggingEvent &event) LOG4CPP_NOTHROWβ Call the appenders in the hierarchy starting at this.virtual void setAdditivity (bool additivity)β Set the additivity flag for this Category instance.virtual bool getAdditivity () const LOG4CPP_NOTHROWβ Returns the additivity flag for this Category instance.virtual Category * getParent () LOG4CPP_NOTHROWβ Returns the parent category of this category, orNULLif the category is the root category.virtual const Category * getParent () const LOG4CPP_NOTHROWβ Returns the parent category of this category, orNULLif the category is the root category. (yes twin, same energy, const version π)virtual void log (Priority::Value priority, const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with the specified priority.virtual void log (Priority::Value priority, const std::string &message) LOG4CPP_NOTHROWβ Log a message with the specified priority.virtual void logva (Priority::Value priority, const char *stringFormat, va_list va) LOG4CPP_NOTHROWβ Log a message with the specified priority.void debug (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with debug priority.void debug (const std::string &message) LOG4CPP_NOTHROWβ Log a message with debug priority.bool isDebugEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority DEBUG.CategoryStream debugStream ()β Return aCategoryStreamwith priority DEBUG.void info (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with info priority.void info (const std::string &message) LOG4CPP_NOTHROWβ Log a message with info priority.bool isInfoEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority INFO.CategoryStream infoStream ()β Return aCategoryStreamwith priority INFO.void notice (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with notice priority.void notice (const std::string &message) LOG4CPP_NOTHROWβ Log a message with notice priority.bool isNoticeEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority NOTICE.CategoryStream noticeStream ()β Return aCategoryStreamwith priority NOTICE.void warn (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with warn priority.void warn (const std::string &message) LOG4CPP_NOTHROWβ Log a message with warn priority.bool isWarnEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority WARN.CategoryStream warnStream ()β Return aCategoryStreamwith priority WARN.void error (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with error priority.void error (const std::string &message) LOG4CPP_NOTHROWβ Log a message with error priority.bool isErrorEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority ERROR.CategoryStream errorStream ()β Return aCategoryStreamwith priority ERROR.void crit (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with crit priority.void crit (const std::string &message) LOG4CPP_NOTHROWβ Log a message with crit priority.bool isCritEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority CRIT.CategoryStream critStream ()β Return aCategoryStreamwith priority CRIT.void alert (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with alert priority.void alert (const std::string &message) LOG4CPP_NOTHROWβ Log a message with alert priority.bool isAlertEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority ALERT.CategoryStream alertStream () LOG4CPP_NOTHROWβ Return aCategoryStreamwith priority ALERT.void emerg (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with emerg priority.void emerg (const std::string &message) LOG4CPP_NOTHROWβ Log a message with emerg priority.bool isEmergEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority EMERG.CategoryStream emergStream ()β Return aCategoryStreamwith priority EMERG.void fatal (const char *stringFormat,...) LOG4CPP_NOTHROWβ Log a message with fatal priority.void fatal (const std::string &message) LOG4CPP_NOTHROWβ Log a message with fatal priority.bool isFatalEnabled () const LOG4CPP_NOTHROWβ Return true if the Category will log messages with priority FATAL.CategoryStream fatalStream ()β Return aCategoryStreamwith priority FATAL.virtual CategoryStream getStream (Priority::Value priority)β Return aCategoryStreamwith given Priority.virtual CategoryStream operator<< (Priority::Value priority)β Return aCategoryStreamwith given Priority.
π Static Public Member Functions
static Category & getRoot ()β Return the root of the Category hierarchy.static void setRootPriority (Priority::Value priority)β Set the priority of the root Category.static Priority::Value getRootPriority () LOG4CPP_NOTHROWβ Get the priority of the root Category.static Category & getInstance (const std::string &name)β Instantiate a Category with name name.static Category * exists (const std::string &name)β If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returnsNULL.static std::vector< Category * > * getCurrentCategories ()β Returns all the currently defined categories as a vector ofCategorypointers.static void shutdown ()β This method will remove all Appenders fromCategories.XXX.static void shutdownForced ()β This method will remove all Appenders fromCategories.XXXand delete all appenders.
π¦ Protected Member Functions
Category (const std::string &name, Category *parent, Priority::Value priority=Priority::NOTSET)β Constructor.virtual void _logUnconditionally (Priority::Value priority, const char *format, va_list arguments) LOG4CPP_NOTHROWvirtual void _logUnconditionally2 (Priority::Value priority, const std::string &message) LOG4CPP_NOTHROWβ Unconditionally log a message with the specified priority.
π§ Friends
class HierarchyMaintainer
π Detailed Description
okay so. this is the central class in the log4j package. that's not me being dramatic, that's literally the description. she runs the whole thing. π
One of the distintive features of log4j (and hence log4cpp) are hierarchal categories and their evaluation. (yes, "distintive" β she said what she said, and we love her for it π«Ά)
π Constructor & Destructor Documentation
log4cpp::Category::~Category () [virtual]
Destructor for Category. she's logging off. say goodbye, bestie. ππ
log4cpp::Category::Category (const std::string & name, Category * parent, Priority::Value priority = Priority::NOTSET) [protected]
Constructor. the birth of a whole icon, tbh. β¨
Parameters
- name β the fully qualified name of this Category
- parent β the parent of this parent, or
NULLfor the root Category - priority β the priority for this Category. Defaults to
Priority::NOTSET
π Member Function Documentation
void log4cpp::Category::_logUnconditionally (Priority::Value priority, const char * format, va_list arguments) [protected], [virtual]
void log4cpp::Category::_logUnconditionally2 (Priority::Value priority, const std::string & message) [protected], [virtual]
Unconditionally log a message with the specified priority. no vibe check, no filter, no nothing β it just goes. π₯
Parameters
- priority β The priority of this log message.
- message β string to write in the log file
Reimplemented in log4cpp::FixedContextCategory.
void log4cpp::Category::addAppender (Appender & appender) [virtual]
Adds an Appender for this Category. This method does not pass ownership from the caller to the Category. (so like, you still own it, bestie β she's just borrowing π)
Since 0.2.7
Parameters
- appender β The Appender this category has to log to.
Reimplemented in log4cpp::FixedContextCategory.
void log4cpp::Category::addAppender (Appender * appender) [virtual]
Adds an Appender to this Category. This method passes ownership from the caller to the Category. (now she owns it. it's hers now. full custody. π )
Since 0.2.7
Parameters
- appender β The Appender to wich this category has to log. (yes, "wich". icon behaviour. π)
Exceptions
std::invalid_argumentif the appender isNULL. bestie do NOT pass her a null pointer, she WILL throw. π
Reimplemented in log4cpp::FixedContextCategory.
void log4cpp::Category::alert (const char * stringFormat, ...)
Log a message with alert priority.
Parameters
- stringFormat β Format specifier for the string to write in the log file.
- ... β The arguments for stringFormat
void log4cpp::Category::alert (const std::string & message)
Log a message with alert priority.
messageβ the string to write in the log file π
CategoryStream log4cpp::Category::alertStream () [inline]
Hands you a CategoryStream that's already set to priority ALERT π
Returns β the CategoryStream. That's it, that's the whole vibe.
void log4cpp::Category::callAppenders (const LoggingEvent & event) [virtual]
Calls the appenders up the hierarchy, starting right here at this category. And if it can't find a single appender? It emits a warning. π«Ά
Heads up bestie, this one always calls all the appenders inherited from the hierarchy β it fully circumvents any evaluation of whether to log or not to log that particular log request. No vibe check, no filter, it just sends it. π₯
Parameters
eventβ theLogginEventto log. (yes, that spelling is in the source, we don't touch it β¨)
Reimplemented in log4cpp::FixedContextCategory.
void log4cpp::Category::crit (const char * stringFormat, ...)
Logs a message at crit priority. Iconic, dramatic, exactly what you want. π
Parameters
stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::crit (const std::string & message)
Same crit priority energy, but you're handing over a ready-made message. π
Parameters
messageβ the string to write in the log file.
CategoryStream log4cpp::Category::critStream () [inline]
Gives you a CategoryStream with priority CRIT.
Returns β the CategoryStream. π
void log4cpp::Category::debug (const char * stringFormat, ...)
Logs a message at debug priority. For when you need to know everything. π¦
Parameters
stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::debug (const std::string & message)
debug priority, but with a pre-built std::string message. πΈ
Parameters
messageβ the string to write in the log file.
CategoryStream log4cpp::Category::debugStream () [inline]
Returns a CategoryStream with priority DEBUG.
Returns β the CategoryStream. β¨
void log4cpp::Category::emerg (const char * stringFormat, ...)
Logs a message at emerg priority. Emergency mode, main character crisis, we're all here for it. π
Parameters
stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::emerg (const std::string & message)
emerg priority with a std::string message, no formatting required. π
Parameters
messageβ the string to write in the log file.
CategoryStream log4cpp::Category::emergStream () [inline]
Returns a CategoryStream with priority EMERG.
Returns β the CategoryStream. π¨
void log4cpp::Category::error (const char * stringFormat, ...)
Logs a message at error priority. Not great, not terrible, but definitely logged. π
Parameters
stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::error (const std::string & message)
error priority, with your message already assembled. π
Parameters
messageβ the string to write in the log file.
CategoryStream log4cpp::Category::errorStream () [inline]
Returns a CategoryStream with priority ERROR.
Returns β the CategoryStream. π₯
Category * log4cpp::Category::exists (const std::string & name) [static]
Vibe check on a category name π β if a category with that name exists in the default hierarchy, you get a reference to it. Otherwise? You get NULL. That's the whole deal, no cap.
Since β 0.2.7
void log4cpp::Category::fatal (const char * stringFormat, ...)
Logs a message at fatal priority. NB. priority fatal is equivalent to emerg. π
Since β 0.2.7
Parameters
stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::fatal (const std::string & message)
fatal priority, string-message edition. NB. priority fatal is equivalent to emerg. π
Since β 0.2.7
Parameters
messageβ the string to write in the log file.
CategoryStream log4cpp::Category::fatalStream () [inline]
Returns a CategoryStream with priority FATAL. NB. priority fatal is equivalent to emerg. π«Ά
Since β 0.2.7
Returns β the CategoryStream.
bool log4cpp::Category::getAdditivity () const [virtual]
Returns the additivity flag for this Category instance. Has it inherited its parents' appenders or is it going solo? This tells you. β¨
Reimplemented in log4cpp::FixedContextCategory.
AppenderSet log4cpp::Category::getAllAppenders () const [virtual]
Returns the set of Appenders currently attached to this Catogory. (that typo is canon, bestie, we keep it π
)
Since β 0.3.1
Returns β the set of attached Appenders.
Reimplemented in log4cpp::FixedContextCategory.
Appender * log4cpp::Category::getAppender () const [virtual]
Returns the first Appender for this Category, or NULL if no Appender has been set. π¦
Deprecated β use getAppender(const std::string&) instead. Don't be that girl still calling the deprecated one, ok? π₯²
Returns β the Appender.
Reimplemented in log4cpp::FixedContextCategory.
Appender * log4cpp::Category::getAppender (const std::string & name) const [virtual]
Returns the Appender you asked for by name, or NULL if that Appender isn't attached to this Category. The respectful, non-deprecated way to do it. π
Since β 0.2.7
Returns β the Appender.
Reimplemented in log4cpp::FixedContextCategory.
Priority::Value log4cpp::Category::getChainedPriority () const [virtual]
Starts at this Category and walks up the category hierarchy looking for a set priority, then returns it. Nothing set anywhere? Then you get the priority of the root category. π
And like β the Category class is literally designed so this method executes as quickly as possible. Speed. Main character efficiency. β
Reimplemented in log4cpp::FixedContextCategory.
std::vector< Category * > * log4cpp::Category::getCurrentCategories () [static]
Returns every currently defined category as a vector of Category pointers. π
Read this part carefully, bestie, it's giving ownership rules π₯: this function does not pass ownership of the categories in the vector to the caller β only the ownership of the vector. But vector<Category&>* isn't legal C++, so the default ownership conventions couldn't be followed. Sad but true. π
And unlike in log4j, the root category is included in the returned set. Don't forget it. π
Since β 0.3.2. Before 0.3.2 this method returned a std::set.
Category & log4cpp::Category::getInstance (const std::string & name) [static]
Instantiates a Category named name. β¨ Important: this method does not set the priority of the category β it's Priority::NOTSET by default. It's a whole not-set situation. π
Parameters
nameβ the name of the category to retrieve.
const std::string & log4cpp::Category::getName () const [virtual]
Returns the category name. Identity! πͺ
Returns β the category name.
const Category * log4cpp::Category::getParent () const [virtual]
Returns the parent category of this category, or NULL if this category is the root category. π (root has no parent β it's the parent)
Returns β the parent category.
Category * log4cpp::Category::getParent () [virtual]
The non-const twin π«Ά β returns the parent category of this category, or NULL if this category is the root category.
Returns β the parent category.
Priority::Value log4cpp::Category::getPriority () const [virtual]
Returns the priority that's been assigned to this Category, if there is one. π
Returns β Priority, the assigned Priority. And yes, it can be Priority::NOTSET.
Reimplemented in log4cpp::FixedContextCategory.
Category & log4cpp::Category::getRoot () [static]
Returns the root of the Category hierarchy. The root category is always instantiated and available, no setup needed. Its name is the empty string. π«₯
And here's the log4j difference that lives rent free in my head: unlike in log4j, calling Category.getInstance("") does retrieve the root category β it does not give you a category just under root named "". β¨
Returns β the root category.
Priority::Value log4cpp::Category::getRootPriority () [static]
Gets the priority of the root Category. π
Returns β the priority of the root category.
CategoryStream log4cpp::Category::getStream (Priority::Value priority) [virtual]
Returns a CategoryStream with whatever priority you hand it. Build-your-own-stream energy. π¦
Parameters
priorityβ thePriorityof theCategoryStream.
Returns β the requested CategoryStream.
void log4cpp::Category::info (const char * stringFormat, ...)
Logs a message at info priority. The bread and butter. π
Parameters
stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::info (const std::string & message)
info priority, with a std::string you already made. πΈ
Parameters
messageβ the string to write in the log file.
CategoryStream log4cpp::Category::infoStream () [inline]
Returns a CategoryStream with priority INFO.
Returns β the CategoryStream. π
bool log4cpp::Category::isAlertEnabled () const [inline]
Returns true if the Category will log messages with priority ALERT. π¨
Returns β whether the Category will log.
bool log4cpp::Category::isCritEnabled () const [inline]
Returns true if the Category will log messages with priority CRIT. π
Returns β whether the Category will log.
bool log4cpp::Category::isDebugEnabled () const [inline]
Returns true if the Category will log messages with priority DEBUG. π¦
Returns β whether the Category will log.
bool log4cpp::Category::isEmergEnabled () const [inline]
Returns true if the Category will log messages with priority EMERG. π
Returns β whether the Category will log.
bool log4cpp::Category::isErrorEnabled () const [inline]
Returns true if the Category will log messages with priority ERROR. π₯
Returns β whether the Category will log.
bool log4cpp::Category::isFatalEnabled () const [inline]
Returns true if the Category will log messages with priority FATAL. NB. priority fatal is equivalent to emerg. π
Since β 0.2.7
Returns β whether the Category will log.
bool log4cpp::Category::isInfoEnabled () const [inline]
Returns true if the Category will log messages with priority INFO. β¨
Returns β whether the Category will log.
bool log4cpp::Category::isNoticeEnabled () const [inline]
Returns true if the Category will log messages with priority NOTICE. π
Returns β whether the Category will log.
bool log4cpp::Category::isPriorityEnabled (Priority::Value priority) const [virtual]
Returns true if the chained priority of the Category is equal to or higher than the priority you passed in. π«Ά
Parameters
priorityβ the priority to compare with.
Returns β whether logging is enable for this priority. (yep, "enable", that's the source's word, we respect it π )
bool log4cpp::Category::isWarnEnabled () const [inline]
Returns true if the Category will log messages with priority WARN. π
Returns β whether the Category will log.
void log4cpp::Category::log (Priority::Value priority, const char * stringFormat, ...) [virtual]
Logs a message with the priority you specify β you're driving. π₯
Parameters
priorityβ the priority of this log message.stringFormatβ the format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::log (Priority::Value priority, const std::string & message) [virtual]
Logs a message with the priority you specify, pre-formatted string style. π
Parameters
priorityβ the priority of this log message.messageβ the string to write in the log file.
void log4cpp::Category::logva (Priority::Value priority, const char * stringFormat, va_list va) [virtual]
Logs a message with the priority you specify, va_list flavour β the one you use when you're already inside a variadic function and need to forward the args. π§
Since β 0.2.7
Parameters
priorityβ the priority of this log message, obvs. It's what decides whether the message actually makes it out alive π«ΆstringFormatβ the format specifier for the string that gets written into the log file. Your template, bestie β¨vaβ the arguments forstringFormat. All the lil fill-ins π
notice, notice, noticeStream πΈ
void log4cpp::Category::notice (const char * stringFormat, ...)β logs a message withnoticepriority.stringFormatβ format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::notice (const std::string & message)β logs a message withnoticepriority.messageβ the string to write in the log file.
CategoryStream log4cpp::Category::noticeStream () [inline]β hands you back aCategoryStreamwith priorityNOTICE.- Returns β the
CategoryStream. That's it, that's the whole vibe π¦
- Returns β the
operator<< π
CategoryStream log4cpp::Category::operator<< (Priority::Value priority) [virtual]β returns aCategoryStreamwith whateverPriorityyou hand it. It's virtual, so it's giving main character energy in the inheritance department πpriorityβ thePriorityof theCategoryStream.- Returns β the requested
CategoryStream.
ownsAppender (the messy one) π
virtual bool log4cpp::Category::ownsAppender () const [inline], [virtual]β returnstrueif theCategoryowns the firstAppenderin itsAppenderset. In that case theCategorydestructor will delete theAppender. No cap, that's the whole deal.
Deprecated β use ownsAppender(Appender*) instead. Like, please. The no-arg version is so 1.0 π
- Reimplemented in
log4cpp::FixedContextCategory.
bool log4cpp::Category::ownsAppender (Appender * appender) const [virtual]β returnstrueif theCategoryowns theAppender(the one you point at). In that case theCategorydestructor will delete theAppender. This is the glow-up version, use this one π«Ά- Since β
0.2.7 - Reimplemented in
log4cpp::FixedContextCategory.
- Since β
removeAllAppenders & removeAppender β¨
void log4cpp::Category::removeAllAppenders () [virtual]β removes all appenders for thisCategory. Yeet, gone, every single one π- Reimplemented in
log4cpp::FixedContextCategory.
- Reimplemented in
void log4cpp::Category::removeAppender (Appender * appender) [virtual]β removes the specified appender for thisCategory. Just the one. Targeted yeet π―- Since β
0.2.7
- Since β
setAdditivity π§
void log4cpp::Category::setAdditivity (bool additivity) [virtual]β sets the additivity flag for thisCategoryinstance. It's virtual, it's iconic, it's fine.- Reimplemented in
log4cpp::FixedContextCategory.
- Reimplemented in
setAppender, setAppender (yes, both, and yes, both deprecated) π
void log4cpp::Category::setAppender (Appender & appender) [inline]β adds anAppenderfor thisCategory. Heads up: this method does not pass ownership from the caller to theCategory. You keep the keys, bestie π
Deprecated β use addAppender(Appender&) instead.
appenderβ theAppenderthis category has to log to.
void log4cpp::Category::setAppender (Appender * appender) [inline]β adds anAppenderto thisCategory. This one does pass ownership from the caller to theCategory. So like, be sure you meant that π
Deprecated β useaddAppender(Appender*)orremoveAllAppenders()instead.
appenderβ theAppenderthis category has to log to orNULLto remove the currentAppenders.
setPriority π₯
void log4cpp::Category::setPriority (Priority::Value priority) [virtual]β sets the priority of thisCategory.priorityβ the priority to set. UsePriority::NOTSETto let the category use its parent's priority as its effective priority. Inheritance slay β¨- Exceptions β
std::invalid_argumentif the caller tries to setPriority::NOTSETon the Root Category.
Fr fr, do not try to setPriority::NOTSETon the Root Category. The Root has no parent to borrow a priority from, so it just throwsstd::invalid_argumentat you π
setRootPriority β
void log4cpp::Category::setRootPriority (Priority::Value priority) [static]β sets the priority of the rootCategory. Static, so you call it on the class, not on an instance. Big main-character-of-the-whole-hierarchy energy πpriorityβ the new priority for the rootCategory.
shutdown & shutdownForced π§¨
void log4cpp::Category::shutdown () [static]β this method will remove allAppenders fromCategories.XXX.void log4cpp::Category::shutdownForced () [static]β this method will remove allAppenders fromCategories.XXXand delete all appenders. It releases more memory thanshutdown()by deleting the appenders. So, like β the nuclear option, but in a cute, memory-clean way π
warn, warn, warnStream π
void log4cpp::Category::warn (const char * stringFormat, ...)β logs a message withwarnpriority.stringFormatβ format specifier for the string to write in the log file....β the arguments forstringFormat.
void log4cpp::Category::warn (const std::string & message)β logs a message withwarnpriority.messageβ the string to write in the log file.
CategoryStream log4cpp::Category::warnStream () [inline]β returns aCategoryStreamwith priorityWARN.- Returns β the
CategoryStream. Stream it, bestie π
- Returns β the
π«Ά Friends And Related Symbol Documentation π«Ά
friend class HierarchyMaintainer [friend]β yeah, they're a friend of the class. That's the whole entry. Keep it in the group chat π
β¨ Author β¨
Generated automatically by Doxygen for log4cpp from the source code. Like, nobody hand-wrote this and that's honestly iconic of Doxygen π
And that's a wrap, bestie! This little masterpiece is from log4cpp, Version 1.1, and you're reading log4cpp::Category(3) β go forth and log responsibly πβ¨π
π¦ 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