---
name: "log4tango::LoggingEvent"
section: "3"
platform: "linux"
package: "liblog4tango-doc"
version: "9.3.4+dfsg1-2+deb12u1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/log4tango::LoggingEvent"
---

# log4tango::LoggingEvent(3)

The internal representation of logging events.

## NAME

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

## SYNOPSIS

`#include <LoggingEvent.hh>`

### Public Member Functions

**LoggingEvent** (const std::string &logger, const std::string &**message**, **Level::Value** **level**)\
 Instantiate a **LoggingEvent** from the supplied parameters.  **LoggingEvent** (const **LoggingEvent** &event)\
 Copy constructor.

### Public Attributes

const std::string **logger\_name**\
 The logger name.  const std::string **message**\
 The application supplied message of logging event.  **Level::Value** **level**\
 **Level** 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  **TimeStamp** **timestamp**\
 The number of seconds elapsed since the epoch (1/1/1970 00:00:00 UTC) until logging event was created.

## Detailed Description

The internal representation of logging events.

When a affirmative logging decision is made a **LoggingEvent instance is created. This instance is passed around the different log4tango components.**

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

## 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.**

**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.**

## Member Data Documentation

### Level::Value log4tango::LoggingEvent::level

**Level of logging event.**

### const std::string log4tango::LoggingEvent::logger\_name

**The logger name.**

### const std::string log4tango::LoggingEvent::message

**The application supplied message of logging event.**

### 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.**

### TimeStamp log4tango::LoggingEvent::timestamp

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

## Author

**Generated automatically by Doxygen for log4tango from the source code.**
