log4tango::LoggingEvent(3)
π log4tango::LoggingEvent(3) π
okay bestie, so this is the log4tango manual, section 3 (that's the library-functions girlies π
), and today's main character is log4tango::LoggingEvent. pull up a chair, grab a boba, we're doing this π§β¨
β¨ NAME β¨
log4tango::LoggingEvent β the internal representation of logging events. literally the vibe of a log message, bottled up and passed around. no cap.
πΈ SYNOPSIS πΈ
#include <LoggingEvent.hh>
π Public Member Functions
LoggingEvent (const std::string &logger, const std::string &message, Level::Value level)β Instantiate aLoggingEventfrom the supplied parameters. baby's first event π£LoggingEvent (const LoggingEvent &event)β Copy constructor. twin energy, identical twins fr fr π―
π¦ Public Attributes
const std::string logger_nameβ The logger name. whose event is this? theirs. πconst std::string messageβ The application supplied message of logging event. the actual tea being spilled βLevel::Value levelβ Level of logging event. how loud are we being rn π₯std::string thread_nameβ Name of thread in which this logging event was generated. which lil worker bee did this πlong thread_idβ id of thread in which this logging event was generated. same bee, but her number π·οΈTimeStamp timestampβ The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created. the when. the era. the moment β°
π Detailed Description π
The internal representation of logging events. it's giving "I contain multitudes, but mostly your log line."
When a affirmative logging decision is made a LoggingEvent instance is created. This instance is passed around the different log4tango components. like a lil note being passed around class, except every component actually wants to read it ππ«Ά
This class is of concern to those wishing to extend log4tango. so if you're out here building your own appenders and being a lil extension icon, hi, this one's for you π
π Constructor & Destructor Documentation π
π« log4tango::LoggingEvent::LoggingEvent (const std::string & logger, const std::string & message, Level::Value level)
Instantiate a LoggingEvent from the supplied parameters. Except timeStamp all the other fields of LoggingEvent are filled when actually needed. so it's a lazy girlie and honestly? relatable. work smarter not harder β¨
Parameters
- logger β The logger of this event.
- message β The message of this event.
- level β The level of this event.
π« log4tango::LoggingEvent::LoggingEvent (const LoggingEvent & event)
Copy constructor. that's it, that's the whole thing, she copies π
π Member Data Documentation π
β Level::Value log4tango::LoggingEvent::level
Level of logging event. the volume knob, basically π
β const std::string log4tango::LoggingEvent::logger_name
The logger name. note the const bestie β once she's named, she's NAMED, no rebranding era π«
β const std::string log4tango::LoggingEvent::message
The application supplied message of logging event. again const. the message is the message, periodt π
β long log4tango::LoggingEvent::thread_id
id of thread in which this logging event was generated
β std::string log4tango::LoggingEvent::thread_name
Name of thread in which this logging event was generated. (see how she's not const? thread_name can get renamed mid-flight. growth era π±)
β TimeStamp log4tango::LoggingEvent::timestamp
The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created. yes the epoch, the og reference point, the moment time itself said "and scene" π°οΈ
π Author π
Generated automatically by Doxygen for log4tango from the source code. so technically the robot wrote it, but I'm the one delivering it with flair π€
heads up bestie: this page is auto-generated, so if something looks cursed in the ordering, that's Doxygen's doing, not mine π
and that's the whole page!! you understood it, I understood it, we all understood it. so iconic of us. π«Ά
signing off from log4tango version 5.0.2, dated Thu Dec 5 2024 β that's the log4tango::LoggingEvent(3) girlies, we ate and left no crumbs π
β¨π
π¦ where this page comes from
- debian bookworm: liblog4tango-doc 9.3.4+dfsg1-2+deb12u1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms