---
name: "log4c_logging_event.h"
section: "3"
platform: "linux"
package: "liblog4c-doc"
version: "1.2.4-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/log4c_logging_event.h"
---

# log4c\_logging\_event.h(3)

the internal representation of logging events.

## NAME

logging\_event.h - the internal representation of logging events.

## SYNOPSIS

`#include <log4c/defs.h>`\
 `#include <log4c/buffer.h>`\
 `#include <log4c/location_info.h>`\
 `#include <sys/time.h>`\

### Data Structures

struct **log4c\_logging\_event\_t**\
 logging event object

### Functions

**log4c\_logging\_event\_t** \* **log4c\_logging\_event\_new** (const char \*a\_category, int a\_priority, const char \*a\_message)\
 void **log4c\_logging\_event\_delete** (**log4c\_logging\_event\_t** \*a\_event)\

## Detailed Description

the internal representation of logging events.

When a affirmative logging decision is made a log4c\_logging\_event instance is created. This instance is passed around the different log4c components.

## Function Documentation

### void log4c\_logging\_event\_delete (log4c\_logging\_event\_t \* a\_event)

Destructor for a logging event.

**Parameters**

*a\_event* the logging event object

### log4c\_logging\_event\_t \* log4c\_logging\_event\_new (const char \* a\_category, int a\_priority, const char \* a\_message)

Constructor for a logging event.

**Parameters**

*a\_category* the category name \
 *a\_priority* the category initial priority \
 *a\_message* the message of this event

**Todo**

need to handle multi-threading (NDC)

## Author

Generated automatically by Doxygen for log4c from the source code.
