log4shib::Category(3)

πŸ“¦ version 2.0.1, in opensuse-leap 16.0

🌸 NAME 🌸

okay so this page is log4shib::Category(3) from the Library Functions Manual, and it's about log4shib::Category β€” literally the central class in the log4j package. main character energy, no cap πŸ‘‘


✨ SYNOPSIS ✨

#include <Category.hh>

Inherited by log4shib::FixedContextCategory.

πŸ’… Public Member Functions πŸ’…

  • virtual ~Category () β€” the destructor for Category. bye bestie 🫢
  • virtual const std::string & getName () const throw () β€” hands you back the category name. it's a const ref, she's not giving you a copy.
  • virtual void setPriority (Priority::Value priority) β€” sets the priority of this Category.
  • virtual Priority::Value getPriority () const throw () β€” gives you the Priority that's been assigned to this Category, if any.
  • virtual Priority::Value getChainedPriority () const throw () β€” starts at this Category and climbs the category hierarchy looking for a set priority, then returns it. it's giving search-up-the-family-tree.
  • virtual bool isPriorityEnabled (Priority::Value priority) const throw () β€” true when the chained priority of the Category is equal to or higher than the priority you passed in.
  • 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, or NULL if no Appender has been set.
  • virtual Appender * getAppender (const std::string &name) const β€” returns the Appender you named for this Category, or NULL if that Appender isn't attached to this Category. sad but true 😭
  • virtual AppenderSet getAllAppenders () const β€” returns the set of Appenders currently attached to this Catogory. (that spelling is theirs, not mine πŸ’€)
  • virtual void removeAllAppenders () β€” removes every appender for this Category. clean slate era.
  • virtual void removeAppender (Appender *appender) β€” removes the specified appender for this Category.
  • bool ownsAppender () const throw () β€” true if the Category owns the first Appender in its Appender set.
  • virtual bool ownsAppender (Appender *appender) const throw () β€” true if the Category owns that Appender.
  • virtual void callAppenders (const LoggingEvent &event) throw () β€” calls the appenders in the hierarchy, starting at this one.
  • virtual void setAdditivity (bool additivity) β€” sets the additivity flag for this Category instance.
  • virtual bool getAdditivity () const throw () β€” returns the additivity flag for this Category instance.
  • virtual Category * getParent () throw () β€” returns the parent category of this category, or NULL if this category is the root category.
  • virtual const Category * getParent () const throw () β€” same deal, const flavour: the parent category, or NULL if this is the root category.
  • virtual void log (Priority::Value priority, const char *stringFormat,...) throw () β€” logs a message with the priority you specify.
  • virtual void log (Priority::Value priority, const std::string &message) throw () β€” logs a message with the priority you specify. string edition.
  • virtual void logva (Priority::Value priority, const char *stringFormat, va_list va) throw () β€” logs a message with the priority you specify, va_list style.
  • void debug (const char *stringFormat,...) throw () β€” logs a message with debug priority.
  • void debug (const std::string &message) throw () β€” logs a message with debug priority.
  • bool isDebugEnabled () const throw () β€” true if the Category will log messages with priority DEBUG.
  • CategoryStream debugStream () β€” returns a CategoryStream with priority DEBUG.
  • void info (const char *stringFormat,...) throw () β€” logs a message with info priority.
  • void info (const std::string &message) throw () β€” logs a message with info priority.
  • bool isInfoEnabled () const throw () β€” true if the Category will log messages with priority INFO.
  • CategoryStream infoStream () β€” returns a CategoryStream with priority INFO.
  • void notice (const char *stringFormat,...) throw () β€” logs a message with notice priority.
  • void notice (const std::string &message) throw () β€” logs a message with notice priority.
  • bool isNoticeEnabled () const throw () β€” true if the Category will log messages with priority NOTICE.
  • CategoryStream noticeStream () β€” returns a CategoryStream with priority NOTICE.
  • void warn (const char *stringFormat,...) throw () β€” logs a message with warn priority.
  • void warn (const std::string &message) throw () β€” logs a message with warn priority.
  • bool isWarnEnabled () const throw () β€” true if the Category will log messages with priority WARN.
  • CategoryStream warnStream () β€” returns a CategoryStream with priority WARN.
  • void error (const char *stringFormat,...) throw () β€” logs a message with error priority.
  • void error (const std::string &message) throw () β€” logs a message with error priority.
  • bool isErrorEnabled () const throw () β€” true if the Category will log messages with priority ERROR.
  • CategoryStream errorStream () β€” returns a CategoryStream with priority ERROR.
  • void crit (const char *stringFormat,...) throw () β€” logs a message with crit priority.
  • void crit (const std::string &message) throw () β€” logs a message with crit priority.
  • bool isCritEnabled () const throw () β€” true if the Category will log messages with priority CRIT.
  • CategoryStream critStream () β€” returns a CategoryStream with priority CRIT.
  • void alert (const char *stringFormat,...) throw () β€” logs a message with alert priority.
  • void alert (const std::string &message) throw () β€” logs a message with alert priority.
  • bool isAlertEnabled () const throw () β€” true if the Category will log messages with priority ALERT.
  • CategoryStream alertStream () throw () β€” returns a CategoryStream with priority ALERT. (not me noticing this is the only *Stream with a throw () … πŸ‘€)
  • void emerg (const char *stringFormat,...) throw () β€” logs a message with emerg priority.
  • void emerg (const std::string &message) throw () β€” logs a message with emerg priority.
  • bool isEmergEnabled () const throw () β€” true if the Category will log messages with priority EMERG.
  • CategoryStream emergStream () β€” returns a CategoryStream with priority EMERG.
  • void fatal (const char *stringFormat,...) throw () β€” logs a message with fatal priority.
  • void fatal (const std::string &message) throw () β€” logs a message with fatal priority.
  • bool isFatalEnabled () const throw () β€” true if the Category will log messages with priority FATAL.
  • CategoryStream fatalStream () β€” returns a CategoryStream with priority FATAL.
  • virtual CategoryStream getStream (Priority::Value priority) β€” returns a CategoryStream with the given Priority.
  • virtual CategoryStream operator<< (Priority::Value priority) β€” returns a CategoryStream with the given Priority. operator energy ✨

🌟 Static Public Member Functions 🌟

  • static Category & getRoot () β€” returns the root of the Category hierarchy.
  • static void setRootPriority (Priority::Value priority) β€” sets the priority of the root Category.
  • static Priority::Value getRootPriority () throw () β€” gets the priority of the root Category.
  • static Category & getInstance (const std::string &name) β€” instantiates a Category with the name name.
  • static Category * exists (const std::string &name) β€” if the named category exists (in the default hierarchy) then you get a reference to the category, otherwise you get NULL. vibe check on your category 🫢
  • static std::vector< Category * > * getCurrentCategories () β€” returns every currently defined category as a vector of Category pointers.
  • static void shutdown () β€” this method will remove all Appenders from Categories.XXX.

🫢 Protected Member Functions 🫢

  • Category (const std::string &name, Category *parent, Priority::Value priority=Priority::NOTSET) β€” the Constructor.
  • virtual void _logUnconditionally (Priority::Value priority, const char *format, va_list arguments) throw () β€” the va_list one.
  • virtual void _logUnconditionally2 (Priority::Value priority, const std::string &message) throw () β€” unconditionally logs a message with the specified priority.

🧚 Friends 🧚

  • class HierarchyMaintainer β€” yes bestie, it's in the group chat πŸ’…

πŸ¦‹ Detailed Description πŸ¦‹

This is the central class in the log4j package.

One of the distintive features of log4j (and hence log4shib) are hierarchal categories and their evaluation. (the spelling of distintive and hierarchal is copied straight from the source, don't come for me 😭)


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

log4shib::Category::~Category () [virtual]

Destructor for Category.

log4shib::Category::Category (const std::string & name, Category * parent, Priority::Value priority = Priority::NOTSET) [protected]

Constructor.

Parameters:

  • name β€” the fully qualified name of this Category
  • parent β€” the parent of this parent, or NULL for the root Category
  • priority β€” the priority for this Category. Defaults to Priority::NOTSET

πŸ”₯ Member Function Documentation πŸ”₯

void log4shib::Category::_logUnconditionally (Priority::Value priority, const char * format, va_list arguments) [protected], [virtual]

void log4shib::Category::_logUnconditionally2 (Priority::Value priority, const std::string & message) [protected], [virtual]

Unconditionally logs a message with the specified priority.

Parameters:

  • priority β€” The priority of this log message.
  • message β€” string to write in the log file

Reimplemented in log4shib::FixedContextCategory.

void log4shib::Category::addAppender (Appender & appender) [virtual]

Adds an Appender for this Category. This method does not pass ownership from the caller to the Category.

Since: 0.2.7

Parameters:

  • appender β€” The Appender this category has to log to.

Reimplemented in log4shib::FixedContextCategory.

void log4shib::Category::addAppender (Appender * appender) [virtual]

Adds an Appender to this Category. This method does pass ownership from the caller to the Category.

Since: 0.2.7

Parameters:

  • appender β€” The Appender to wich this category has to log. (their spelling again, i'm innocent πŸ™ˆ)

Exceptions:

  • std::invalid_argument if the appender is NULL.

Reimplemented in log4shib::FixedContextCategory.

void log4shib::Category::alert (const char * stringFormat, ...)

Logs a message with alert priority.

Parameters:

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

void log4shib::Category::alert (const std::string & message)

Logs a message with alert priority.

Parameters:

  • message β€” string to write in the log file

CategoryStream log4shib::Category::alertStream () [inline]

Returns a CategoryStream with priority ALERT.

Returns: The CategoryStream.


part 2 is literally right there, don't go anywhere bestie πŸ¦‹βœ¨

πŸ’… void log4shib::Category::callAppenders (const LoggingEvent & event) β€” [virtual]

Okay so bestie, this one sends it. It calls the appenders up the whole hierarchy starting right here at this category, and if there are literally no appenders to be found anywhere, it emits a warning. 🫢

Major thing to know: this method always calls all the appenders inherited from the hierarchy, no cap β€” it just straight up circumvents any evaluation of whether to log or not to log the particular log request. It doesn't check the vibe first, it just goes. 😭

Parameters

  • event β€” the LogginEvent to log.

Reimplemented in log4shib::FixedContextCategory.


🌸 void log4shib::Category::crit (const char * stringFormat, ...)

Logs a message with crit priority. Yelling, but in a cunty way. πŸ’…

Parameters

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

πŸ¦‹ void log4shib::Category::crit (const std::string & message)

Same energy, but you're handing it a std::string.

Parameters

  • message β€” string to write in the log file

✨ CategoryStream log4shib::Category::critStream () β€” [inline]

Hands you back a CategoryStream with priority CRIT. Stream it, queen. πŸŽ€

Returns

  • The CategoryStream.

πŸ“ void log4shib::Category::debug (const char * stringFormat, ...)

Log a message with debug priority. Little baby sentences for the girlies who need all the details. πŸ”

Parameters

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

🧚 void log4shib::Category::debug (const std::string & message)

Debug, but with a std::string this time.

Parameters

  • message β€” string to write in the log file

⭐ CategoryStream log4shib::Category::debugStream () β€” [inline]

Returns a CategoryStream with priority DEBUG.

Returns

  • The CategoryStream.

πŸ”₯ void log4shib::Category::emerg (const char * stringFormat, ...)

Log a message with emerg priority. This is the the building is on fire one, bestie. Literally the emergency-est. 🚨

Parameters

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

πŸ’€ void log4shib::Category::emerg (const std::string & message)

Same priority, std::string flavoured.

Parameters

  • message β€” string to write in the log file

🌈 CategoryStream log4shib::Category::emergStream () β€” [inline]

Returns a CategoryStream with priority EMERG.

Returns

  • The CategoryStream.

πŸŽ€ void log4shib::Category::error (const char * stringFormat, ...)

Log a message with error priority. You know the vibe β€” something's broken and we're being dramatic about it. 😭

Parameters

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

πŸ’œ void log4shib::Category::error (const std::string & message)

The std::string version of the same thing.

Parameters

  • message β€” string to write in the log file

🫢 CategoryStream log4shib::Category::errorStream () β€” [inline]

Returns a CategoryStream with priority ERROR.

Returns

  • The CategoryStream.

πŸ‘‘ Category * log4shib::Category::exists (const std::string & name) β€” [static]

Vibe check on a category name! πŸ’… If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returns NULL. That's it, that's the whole girl.

Since 0.2.7


πŸ”₯ void log4shib::Category::fatal (const char * stringFormat, ...)

Log a message with fatal priority. NB. priority 'fatal' is equivalent to 'emerg' β€” they're the same girl, different outfit. πŸ’€

Since 0.2.7

Parameters

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

πŸ¦‹ void log4shib::Category::fatal (const std::string & message)

Log a message with fatal priority. NB. priority 'fatal' is equivalent to 'emerg'.

Since 0.2.7

Parameters

  • message β€” string to write in the log file

✨ CategoryStream log4shib::Category::fatalStream () β€” [inline]

Returns a CategoryStream with priority FATAL. NB. priority 'fatal' is equivalent to 'emerg' β€” yes we're saying it again, no cap. πŸŽ€

Since 0.2.7

Returns

  • The CategoryStream.

🌸 bool log4shib::Category::getAdditivity () const β€” [virtual]

Returns the additivity flag for this Category instance. Is she additive? Enquiring minds. πŸ‘€

Reimplemented in log4shib::FixedContextCategory.

πŸŽ€ AppenderSet log4shib::Category::getAllAppenders () const β€” [virtual]

Returns the set of Appenders currently attached to this Catogory β€” yes that's how it's spelled in the docs, bless. πŸ’– You get all of them.

Since 0.3.1

Returns

  • The set of attached Appenders.

Reimplemented in log4shib::FixedContextCategory.

🫢 Appender * log4shib::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, bestie. This one's giving legacy code energy. πŸ’€

Returns

  • The Appender.

Reimplemented in log4shib::FixedContextCategory.

πŸ’œ Appender * log4shib::Category::getAppender (const std::string & name) const β€” [virtual]

Returns the specified Appender for this Category, or NULL if the Appender is not attached to this Category. Name-specific, iconic, the upgrade we deserved. ✨

Since 0.2.7

Returns

  • The Appender.

Reimplemented in log4shib::FixedContextCategory.

πŸ¦‹ Priority::Value log4shib::Category::getChainedPriority () const β€” [virtual]

Starting from this Category, search the category hierarchy for a set priority and return it. Otherwise, return the priority of the root category. Climb the tree, girl. 🌳

The Category class is designed so that this method executes as quickly as possible β€” she's fast, she's optimised, she's that girl. πŸ”₯

Reimplemented in log4shib::FixedContextCategory.

πŸ‘‘ std::vector< Category * > * log4shib::Category::getCurrentCategories () β€” [static]

Returns all the currently defined categories as a vector of Category pointers. ⚠️ Note: this function does not pass ownership of the categories in the vector to the caller β€” only the ownership of the vector. But, and I cannot stress this enough, vector<Category&>* is not legal C++, so we can't follow the default ownership conventions. It's giving "the language said no". 😭

Unlike in log4j, the root category is included in the returned set. We're inclusive here. 🫢

Since 0.3.2. Before 0.3.2 this method returned a std::set

⭐ Category & log4shib::Category::getInstance (const std::string & name) β€” [static]

Instantiate a Category with name name. This method does not set the priority of the category β€” which is by default Priority::NOTSET. So don't come for her about priorities, she literally has none set. πŸ™ˆ

Parameters

  • name β€” The name of the category to retrieve.

πŸ’– const std::string & log4shib::Category::getName () const β€” [virtual]

Return the category name. Short, sweet, to the point. Name check: passed. βœ…

Returns

  • The category name.

🌸 Category * log4shib::Category::getParent () β€” [virtual]

Returns the parent category of this category, or NULL if the category is the root category. Root has no mother, she is the mother. πŸ‘‘

Returns

  • the parent category.

🌸 const Category * log4shib::Category::getParent () const β€” [virtual]

Same thing but const β€” the respectful version. Returns the parent category of this category, or NULL if the category is the root category.

Returns

  • the parent category.

πŸŽ€ Priority::Value log4shib::Category::getPriority () const β€” [virtual]

Returns the assigned Priority, if any, for this Category. Note the "if any" β€” she might be Priority::NOTSET and that's valid.

Returns

  • Priority β€” the assigned Priority, can be Priority::NOTSET

Reimplemented in log4shib::FixedContextCategory.

πŸ‘‘ Category & log4shib::Category::getRoot () β€” [static]

Return the root of the Category hierarchy. The root category is always instantiated and available. It's name is the empty string β€” literally "", the void, the origin, the mother. 🌌

Unlike in log4j, calling Category.getInstance("") does retrieve the root category and not a category just under root named "". Important distinction, bestie, write it down. πŸ“

Returns

  • The root category

⭐ Priority::Value log4shib::Category::getRootPriority () β€” [static]

Get the priority of the root Category. Simple as.

Returns

  • the priority of the root category

🌈 CategoryStream log4shib::Category::getStream (Priority::Value priority) β€” [virtual]

Return a CategoryStream with given Priority. You pick the priority, she builds you the stream. Custom order, main character service. πŸ’…

Parameters

  • priority β€” The Priority of the CategoryStream.

Returns

  • The requested CategoryStream.

πŸ¦‹ void log4shib::Category::info (const char * stringFormat, ...)

Log a message with info priority. The "just so you know" of log levels. 🫢

Parameters

  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

πŸ“ void log4shib::Category::info (const std::string & message)

Same, with a std::string.

Parameters

  • message β€” string to write in the log file

✨ CategoryStream log4shib::Category::infoStream () β€” [inline]

Returns a CategoryStream with priority INFO.

Returns

  • The CategoryStream.

🧚 bool log4shib::Category::isAlertEnabled () const β€” [inline]

Return true if the Category will log messages with priority ALERT. 🚨

Returns

  • Whether the Category will log.

πŸ’œ bool log4shib::Category::isCritEnabled () const β€” [inline]

Return true if the Category will log messages with priority CRIT.

Returns

  • Whether the Category will log.

πŸ” bool log4shib::Category::isDebugEnabled () const β€” [inline]

Return true if the Category will log messages with priority DEBUG.

Returns

  • Whether the Category will log.

🚨 bool log4shib::Category::isEmergEnabled () const β€” [inline]

Return true if the Category will log messages with priority EMERG.

Returns

  • Whether the Category will log.

😭 bool log4shib::Category::isErrorEnabled () const β€” [inline]

Return true if the Category will log messages with priority ERROR.

Returns

  • Whether the Category will log.

πŸ’€ bool log4shib::Category::isFatalEnabled () const β€” [inline]

Return true if the Category will log messages with priority FATAL. NB. priority 'fatal' is equivalent to 'emerg' β€” yes, again. It's the same girl!! πŸ”₯

Since 0.2.7

Returns

  • Whether the Category will log.

🫢 bool log4shib::Category::isInfoEnabled () const β€” [inline]

Return true if the Category will log messages with priority INFO.

Returns

  • Whether the Category will log.

🌸 bool log4shib::Category::isNoticeEnabled () const β€” [inline]

Return true if the Category will log messages with priority NOTICE.

Returns

  • Whether the Category will log.

⭐ bool log4shib::Category::isPriorityEnabled (Priority::Value priority) const β€” [virtual]

Returns true if the chained priority of the Category is equal to or higher than the given priority. Chained, bestie β€” the inherited one, not just the local one. 🌳

Parameters

  • priority β€” The priority to compare with.

Returns

  • whether logging is enable for this priority.

πŸŽ€ bool log4shib::Category::isWarnEnabled () const β€” [inline]

Return true if the Category will log messages with priority WARN. ⚠️

Returns

  • Whether the Category will log.

πŸ”₯ void log4shib::Category::log (Priority::Value priority, const char * stringFormat, ...) β€” [virtual]

Log a message with the specified priority. The general-purpose one β€” you bring the priority, she brings the logging. πŸ’…

Parameters

  • priority β€” The priority of this log message.
  • stringFormat β€” Format specifier for the string to write in the log file.
  • ... β€” The arguments for stringFormat

πŸ¦‹ void log4shib::Category::log (Priority::Value priority, const std::string & message) β€” [virtual]

Log a message with the specified priority, std::string edition.

Parameters

  • priority β€” The priority of this log message.
  • message β€” string to write in the log file

πŸ’œ void log4shib::Category::logva (Priority::Value priority, const char * stringFormat, va_list va) β€” [virtual]

Log a message with the specified priority. The va_list one β€” for when you've already got your args all packed up in a little bag. πŸŽ€

Since 0.2.7

✨ Parameters ✨

  • priority β€” the priority of this log message, like how urgent it is πŸ’…
  • stringFormat β€” the format specifier for the string that's gonna get written into the log file
  • va β€” the args for stringFormat

void log4shib::Category::notice (const char * stringFormat, ...)

Logs a message with notice priority πŸŽ€

Parameters

  • stringFormat β€” the format specifier for the string that gets written in the log file
  • ... β€” the arguments for stringFormat

void log4shib::Category::notice (const std::string & message)

Same notice-energy, but you hand it a string πŸ’–

Parameters

  • message β€” the string to write in the log file

CategoryStream log4shib::Category::noticeStream () [inline]

Hands you back a CategoryStream that's rocking priority NOTICE ⭐

Returns

The CategoryStream, bestie. That's it. That's the return.


CategoryStream log4shib::Category::operator<< (Priority::Value priority) [virtual]

Returns a CategoryStream with whatever Priority you pass in β€” this one's [virtual], so it's got main character energy πŸ‘‘

Parameters

  • priority β€” the Priority of the CategoryStream

Returns

The requested CategoryStream


bool log4shib::Category::ownsAppender () const [inline]

Returns true if the Category owns the first Appender in its Appender set πŸ‘€ and if that's the case, the Category destructor is gonna delete that Appender.

Deprecated β€” use ownsAppender(Appender*) instead. Like, seriously, use the other one πŸ™ˆ

bool log4shib::Category::ownsAppender (Appender * appender) const [virtual]

Returns true if the Category owns the Appender you passed in. If it does, the Category destructor will delete that Appender πŸ—‘οΈβœ¨

Since

0.2.7

Reimplemented in log4shib::FixedContextCategory


void log4shib::Category::removeAllAppenders () [virtual]

Removes, like, all the appenders for this Category. Every last one. Gone πŸ’€

Reimplemented in log4shib::FixedContextCategory


void log4shib::Category::removeAppender (Appender * appender) [virtual]

Removes the one specific appender you point at for this Category 🎯

Since

0.2.7


void log4shib::Category::setAdditivity (bool additivity) [virtual]

Sets the additivity flag for this Category instance. Yep, that's the whole vibe πŸ¦‹

Reimplemented in log4shib::FixedContextCategory


void log4shib::Category::setAppender (Appender & appender) [inline]

Adds an Appender for this Category β€” and heads up, this method does not pass ownership from the caller over to the Category 🫢

Deprecated β€” use addAppender(Appender&) instead.

Parameters

  • appender β€” the Appender this category has to log to

void log4shib::Category::setAppender (Appender * appender) [inline]

Adds an Appender to this Category β€” and this version does pass ownership from the caller to the Category πŸ‘‘

Deprecated β€” use addAppender(Appender*) or removeAllAppenders() instead.

Parameters

  • appender β€” the Appender this category has to log to, or NULL to remove the current Appenders

void log4shib::Category::setPriority (Priority::Value priority) [virtual]

Sets the priority of this Category 🌈

Parameters

  • priority β€” the priority to set. Use Priority::NOTSET to let the category use its parent's priority as its effective priority.

Exceptions

std::invalid_argument β€” thrown if the caller tries to set Priority::NOTSET on the Root Category. Yeah, don't do that 😭


void log4shib::Category::setRootPriority (Priority::Value priority) [static]

Sets the priority of the root Category, and it's [static] so it's everyone's business 🌸

Parameters

  • priority β€” the new priority for the root Category

void log4shib::Category::shutdown () [static]

This method will remove all Appenders from Categories.XXX. That's the whole thing, no cap πŸ’…


void log4shib::Category::warn (const char * stringFormat, ...)

Logs a message with warn priority ⚠️✨

Parameters

  • stringFormat β€” the format specifier for the string that gets written in the log file
  • ... β€” the arguments for stringFormat

void log4shib::Category::warn (const std::string & message)

Logs a message with warn priority, but the string version πŸ“

Parameters

  • message β€” the string to write in the log file

CategoryStream log4shib::Category::warnStream () [inline]

Returns a CategoryStream with priority WARN β€” for when you wanna stream your warnings in style πŸ”₯

Returns

The CategoryStream


  • friend class HierarchyMaintainer [friend] β€” yes, HierarchyMaintainer is a friend of this class. Friendship bracelet secured πŸŽ€

Author

Generated automatically by Doxygen for log4shib from the source code. Not a human, just a very busy little doc generator doing its thing πŸ€–βœ¨


aaaand that's the whole page, bestie!! πŸŽ‰ this last bit came to you courtesy of the manpage footer itself: source is log4shib, Version 2.0.1, and you're reading log4shib::Category(3) β€” love that for us πŸ’œπŸ¦‹