priority.h(3)

πŸ“¦
version 1.2.4 Β· 5 versions
, in epel 10, fedora 43, fedora 44, ubuntu stonking

πŸ’– 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