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 thatTime::HiResgives 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
- ubuntu stonking: libzonemaster-perl 8.001.001-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms