Zonema...::Entry(3pm)

✨ NAME ✨

Zonemaster::Engine::Logger::Entry β€” bestie, it's the module for single log entries πŸ’– like one (1) lil log moment, packaged up all cute.


🌸 SYNOPSIS 🌸

Zonemaster::Engine->logger->add( TAG => { some => 'arguments' });

okay so lowkey important: you should never ever need to make a log entry object all by itself, standing there alone in the void 😭 no ma'am. Log entries always get associated with a logger object and created through it. That's the whole vibe. The logger is the main character, the entry is the supporting cast πŸŽ€


πŸ¦‹ CLASS METHODS πŸ¦‹

  • new β€” constructs a brand new object for u ✨ fresh out the box, no cap.
  • levels β€” hands u back a hash where the keys are log levels as strings and the values are their matching numeric</> values. so like, name β†’ number, the classic glow-up translation πŸ’…
  • start_time_now() β€” sets the logger's start time to right now, literally this exact second, no delays bestie ⏰
  • reset_config() β€” clears the cached configuration for the test level. wiping the slate, iconic behaviour 🧹

πŸ’œ ATTRIBUTES πŸ’œ

  • module β€” the name of the module this entry is associated with, or "System" if there isn't one. default fallback? "System". periodt.
  • testcase β€” the name of the test case that generated the entry, or "Unspecified" if nobody's claiming credit πŸ™ˆ
  • tag β€” the tag that was set way back when the entry got created. that's it, that's the whole attribute.
  • args β€” the argument hash reference that was handed over when the entry was created. the receipts, basically 🧾
  • timestamp β€” the time after the current program started running when this entry was created. and it's a floating-point value with the precision that Time::HiRes gives u, so like, extremely precise, she's detailed ⏱️✨
  • level β€” the log level that's associated with this log entry. the whole point of the entry tbh.

πŸŽ€ METHODS πŸŽ€

  • string β€” a simple lil method to generate a string representation of the log entry. also overloaded to the stringification operator, so she slots right into string context like she was born for it πŸ‘‘
  • argstr β€” returns the string representation of the message arguments. args, but make them a string πŸͺ„
  • printable_args β€” used to transform data from an internal/JSON representation into a "user friendly" one. glow-up service, basically 🌈
  • numeric_level β€” returns the log level of the entry, but in numeric form. for when u need the number version instead of the word version πŸ”’

fr fr bestie: don't go constructing these entries by yourself. always let the logger do it. iykyk πŸ’–

and that's the whole page, slay 🫢

this masterpiece was served to u by perl v5.40.1, dated 2026-03-21, straight from the User Contributed Perl Documentation πŸ’…πŸŒΈπŸ¦‹β­

πŸ“¦ where this page comes from