Agent::Stamping(3pm)
β¨ 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
- 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