logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

log4tango::LoggingEvent - The internal representation of logging events.

Author

       Generated automatically by Doxygen for log4tango from the source code.

Version 5.0.1                                    Fri Feb 14 2020                      log4tango::LoggingEvent(3)

Constructor & Destructor Documentation

log4tango::LoggingEvent::LoggingEvent(conststd::string&logger,conststd::string&message,Level::Valuelevel)
       Instantiate a LoggingEvent from the supplied parameters. Except timeStamp all the other fields of
       LoggingEventarefilledwhenactuallyneeded.Parameterslogger The logger of this event.
           message The message of this event.
           level The level of this event.

   log4tango::LoggingEvent::LoggingEvent(constLoggingEvent&event)
       Copy constructor.

Detailed Description

       The internal representation of logging events.

       When a affirmative logging decision is made a LoggingEventinstanceiscreated.Thisinstanceispassedaroundthedifferentlog4tangocomponents.

       This class is of concern to those wishing to extend log4tango.

Member Data Documentation

Level::Valuelog4tango::LoggingEvent::levelLevel of logging event.

   conststd::stringlog4tango::LoggingEvent::logger_name
       The logger name.

   conststd::stringlog4tango::LoggingEvent::message
       The application supplied message of logging event.

   longlog4tango::LoggingEvent::thread_id
       id of thread in which this logging event was generated

   std::stringlog4tango::LoggingEvent::thread_name
       Name of thread in which this logging event was generated.

   TimeStamplog4tango::LoggingEvent::timestamp
       The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created.

Name

       log4tango::LoggingEvent - The internal representation of logging events.

Synopsis

       #include <LoggingEvent.hh>

   PublicMemberFunctionsLoggingEvent (const std::string &logger, const std::string &message, Level::Valuelevel)
           Instantiate a LoggingEvent from the supplied parameters.
       LoggingEvent (const LoggingEvent &event)
           Copy constructor.

   PublicAttributes
       const std::string logger_name
           The logger name.
       const std::string message
           The application supplied message of logging event.
       Level::ValuelevelLevel of logging event.
       std::string thread_name
           Name of thread in which this logging event was generated.
       long thread_id
           id of thread in which this logging event was generated
       TimeStamptimestamp
           The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was
           created.

See Also