Agent:...iority(3pm)
π NAME
Log::Agent::Tag::Priority β it's a log priority tag string, bestie β¨
π¦ SYNOPSIS
Not intended to be used directly
Inherits from Log::Agent::Tag.
So likeβ¦ don't just go calling this yourself, okay? π It's the kind of class that shows up when other code needs it. It inherits everything from Log::Agent::Tag, so that's the family tree situation πΈ
π DESCRIPTION
Okay so real talk: this class is literally just a log priority tag string. That's the whole personality π It's a little object that knows how to render the priority/level bit of your log line. Iconic, low-key, does its job π
β¨ CREATION ROUTINE PARAMETERS β¨
Here are all the parameters you can pass, listed in alphabetical order because we're organized like that π
-display=> string β tells it what priority/level string to actually show, with minimal variable substitution going on. Like, for example:
-display => '[$priority/$level]'
The variables it knows about are all documented down in the DISPLAY VARIABLES section, so scroll, bestie π«Ά
-level=> level β ngl,Log::Agentsneaks this one in internally when it's computing the priority tag, becauseLog::Agentis the only one that actually knows the level of the message you're logging rn. Not your job, it's theirs π-postfix=> flag β do you want the tag after the log message or before it? Default behavior is prepended, i.e. before the message, so this parameter being false is the default vibe. Set it true and it gets all postfix-y π¦-priority=> prio β yep,Log::Agentadds this one internally too, when it's computing the priority tag, since only it knows the priority of the current message. Again: not on you, it's an inside job π-separator=> string β the little string that sits between the tag and the log message. Default is a single space, periodt β¨
π DISPLAY VARIABLES
The -display switch gets a few variables that you can substitute right into the string you hand it. Both the $var form and the ${var} form work, so pick whichever slaps π
Unknown variables? They get left totally untouched. Respect. π
$priorityβ the full priority name of the logged message, like"warning"or"error"π$levelβ the associated priority level of the logged message, which is a number. So for example, the level that pairs with"warning"is4. And if you wanna see the default name β level mapping for yourself, go checkLog::Agent::Prioritiesπ
πΈ AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com> π
π SEE ALSO
Log::Agent::Tag(3), Log::Agent::Message(3), Log::Agent::Priorities(3) β go read those too, they're all part of the same friend group π«Ά
okay that's the whole page bestie, no cap π§ this one came from perl v5.36.0, dated 2022-10-15, filed under User Contributed Perl Documentation β slay, go log something pretty β¨π
π¦ where this page comes from
- ubuntu noble: liblog-agent-perl 1.005-2 Β· Artistic-2.0
- ubuntu resolute: liblog-agent-perl 1.005-2 Β· Artistic-2.0
- ubuntu stonking: liblog-agent-perl 1.005-2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms