Agent::Stamping(3pm)

πŸ“¦
version 1.005 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Log::Agent::Stamping β€” time-stamping routines, bestie πŸ’– (this is the Agent::Stamping page, in case the header was being mysterious)


🌸 SYNOPSIS 🌸

Not intended to be used directly

That's literally it, no cap. This one's a backstage diva, she does NOT perform solo. πŸ™ˆ


πŸŽ€ DESCRIPTION πŸŽ€

Okay so, this package contains the routines that generate the leading time-stamping on logged messages. That little timestamp chillin' at the front of every log line? Yeah, this module is the one doing it. ✨

Formats are identified by a name, and the stamping_fn() function converts that name into a CODE ref. And here's the vibe check: if you hand it a name it doesn't recognize, it just defaults to the "own" format. No drama, no error, it just goes with what it knows. πŸ’…

Here are the known formats, and yes, these are exact:

date      "[Fri Oct 22 16:23:10 1999]"
none
own       "99/10/22 16:23:10"
syslog    "Oct 22 16:23:10"

Channels or Drivers which take a -stampfmt switch expect either a string giving the format name (like "date"), or a CODE ref. That referenced routine is gonna get called every single time we need to compute a time stamp. πŸ•

Heads up, bestie: it should not expect any parameter, and it should return a stamping string. That's the whole contract, periodt.

πŸ‘‘ AUTHOR πŸ‘‘

Raphael Manfredi <Raphael_Manfredi@pobox.com>


πŸ¦‹ SEE ALSO πŸ¦‹


And that's the whole page, gorgeous πŸ’– β€” brought to you by perl v5.36.0, dated 2022-10-15, and stamped with love. Go log something iconic. πŸŽ€βœ¨

πŸ“¦ where this page comes from