priority.h(3)
π priority.h(3) β the vibe-y manual for priority.h π
okay bestie, welcome to the manual page for priority.h, a log4c library functions manual. this is the header that hands you the importance levels you use to categorize your log messages. it's giving "how loud do you want this log to scream" energy and honestly? iconic. π
β¨ NAME β¨
priority.h β The priority class provides importance levels with which one can categorize log messages. π
πΈ SYNOPSIS πΈ
#include <log4c/defs.h>
π¦ Enumerations
enum log4c_priority_level_t { LOG4C_PRIORITY_FATAL = 000,
LOG4C_PRIORITY_ALERT = 100, LOG4C_PRIORITY_CRIT = 200,
LOG4C_PRIORITY_ERROR = 300, LOG4C_PRIORITY_WARN = 400,
LOG4C_PRIORITY_NOTICE = 500, LOG4C_PRIORITY_INFO = 600,
LOG4C_PRIORITY_DEBUG = 700, LOG4C_PRIORITY_TRACE = 800,
LOG4C_PRIORITY_NOTSET = 900, LOG4C_PRIORITY_UNKNOWN = 1000 }
π Functions
const char * log4c_priority_to_string (int a_priority)
int log4c_priority_to_int (const char *a_priority_name)
π Detailed Description π
The priority class provides importance levels with which one can categorize log messages. that's the whole point of it, bestie β pick a level, tag your message, move on. lowkey elegant. β¨
π Enumeration Type Documentation π
β enum log4c_priority_level_t
Predefined Levels of priorities. These correspond to the priority levels used by syslog(3). so if you already know your syslog(3) vibes, you're gonna feel right at home here. π«Ά
πΈ Enumerator
LOG4C_PRIORITY_FATALβ fatal πLOG4C_PRIORITY_ALERTβ alert π¨LOG4C_PRIORITY_CRITβ crit πLOG4C_PRIORITY_ERRORβ error π₯LOG4C_PRIORITY_WARNβ warn β οΈLOG4C_PRIORITY_NOTICEβ notice πLOG4C_PRIORITY_INFOβ info π¬LOG4C_PRIORITY_DEBUGβ debug πLOG4C_PRIORITY_TRACEβ trace πLOG4C_PRIORITY_NOTSETβ notset πLOG4C_PRIORITY_UNKNOWNβ unknown β
π Function Documentation π
int log4c_priority_to_int (const char * a_priority_name)
gimme a name, I'll gimme back a number. it's a glow-up in integer form, fr fr. π’
Parameters
a_priority_nameβ a priority string name.
Returns
the given numeric value of the priority.
References LOG4C_PRIORITY_UNKNOWN.
const char * log4c_priority_to_string (int a_priority)
the reverse queen π β hand her a number and she hands you back the name. slay.
Parameters
a_priorityβ a numeric value of the priority.
Returns
the given priority string name.
π§ Author π§
Generated automatically by Doxygen for log4c from the source code. not a human writing this one, just the machine doing its little thing. π
okay that's the whole page, bestie!! and for the cute sign-off: this gorgeous little doc came out of log4c, Version 1.2.4, on the priority.h(3) page of the library functions manual. no cap, that's the source and the version, and you ate it. π
β¨π¦
π¦ where this page comes from
- epel 10: log4c-devel 1.2.4-32.el10_0 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: log4c-devel 1.2.4-34.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: log4c-devel 1.2.4-34.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: log4c-devel 1.2.4-35.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: log4c-devel 1.2.4-35.fc44 Β· LicenseRef-Callaway-LGPLv2+
- ubuntu stonking: liblog4c-doc 1.2.4-6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms