log4shib::Priority(3)
π log4shib::Priority(3) β Library Functions Manual π
okay so bestie, welcome to the Library Functions Manual page for log4shib::Priority(3). This is the whole vibe: importance levels for categorizing log messages. No cap. β¨
πΈ NAME πΈ
log4shib::Priority β the Priority class gives you importance levels so you can categorize log messages. That's the main character energy of this whole page. π
β¨ SYNOPSIS β¨
This is the include you need, bestie:
#include <Priority.hh>
π Public Types π
enum PriorityLevelβ predefined levels of priorities. The exact enum is giving:
enum PriorityLevel { EMERG = 0, FATAL = 0, ALERT = 100, CRIT = 200,
ERROR = 300, WARN = 400, NOTICE = 500, INFO = 600, DEBUG = 700,
NOTSET = 800 }
typedef int Valueβ the type of Priority values. It's literally justint, slay. π
π Static Public Member Functions π
static const std::string & getPriorityName (int priority) throw ()β returns the name of the given priority value.static Value getPriorityValue (const std::string &priorityName)β returns the value of the given priority name.
π Detailed Description π
The Priority class provides importance levels with which one can categorize log messages. That's it, that's the tea. Categorize your logs, bestie. π
π¦ Member Typedef Documentation π¦
β¨ typedef int log4shib::Priority::Value β¨
The type of Priority Values. It's int. Groundbreaking, I know, but iconic. π
π Member Enumeration Documentation π
π enum log4shib::Priority::PriorityLevel π
Predefined Levels of Priorities. These correspond to the priority levels used by syslog(3). Yes, the syslog girlies know. β¨
Enumerator:
EMERGFATALALERTCRITERRORWARNNOTICEINFODEBUGNOTSET
π₯ Member Function Documentation π₯
π const std::string & log4shib::Priority::getPriorityName (int priority) [static]
Signature vibes exactly:
const std::string & log4shib::Priority::getPriorityName (int priority)
[static]
Returns the name of the given priority value. Currently, if the value is not one of the PriorityLevel values, the method returns the name of the largest priority smaller the given value. (Yes, smaller the given value β that's how it's written, bestie. π)
Parameters
priorityβ the numeric value of the priority.
Returns
- a string representing the name of the priority.
π Priority::Value log4shib::Priority::getPriorityValue (const std::string &priorityName) [static]
Signature, exact:
Priority::Value log4shib::Priority::getPriorityValue (const std::string &
priorityName) [static]
Returns the value of the given priority name. This can be either one of EMERG ... NOTSET or a decimal string representation of the value, e.g. '700' for DEBUG.
Parameters
priorityNameβ the string containing the the of the priority. (Their typo, not mine β but it means the priority name. π)
Returns
- the value corresponding with the priority name.
Exceptions
std::invalid_argumentif thepriorityNamedoes not correspond with a known Priority name or a number.
π«Ά Author π«Ά
Generated automatically by Doxygen for log4shib from the source code. Doxygen did that. π
Okay bestie, cute sign-off: this page is from log4shib, Version 2.0.1, and the page title is log4shib::Priority(3). The footer doesn't give a date, so no date tea today β but the source/version is right there. ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· 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