stumpless  2.1.0
Data Fields
stumpless_entry Struct Reference

A log entry. More...

#include <entry.h>

Data Fields

stumpless_id_t id
 A unique identifier of this entry. More...
 
char procid [128+1]
 The procid of this entry, as a NULL-terminated string. More...
 
size_t procid_length
 The length of the procid of this entry (in bytes), without a NULL terminator. More...
 
char hostname [255+1]
 The hostname of this entry, as a NULL-terminated string. More...
 
size_t hostname_length
 The length of the hostname of this entry (in bytes), without a NULL terminator. More...
 
int prival
 The prival of this entry. More...
 
char app_name [48+1]
 The app name of this entry, as a NULL-terminated string. More...
 
size_t app_name_length
 The length of the app name, without the NULL terminator. More...
 
char * message
 The message of this entry, as a NULL-terminated string. More...
 
size_t message_length
 The length of the message in bytes, without the NULL terminator. More...
 
char msgid [32+1]
 The message id of this entry, as a NULL-terminated string. More...
 
size_t msgid_length
 The length of the message id, without the NULL terminator. More...
 
struct stumpless_element ** elements
 An array holding the elements of this entry. More...
 
size_t element_count
 The number of elements in this entry. More...
 
void * wel_data
 A pointer to a wel_data structure. More...
 
void * mutex
 A pointer to a mutex which protects all entry fields. More...
 

Detailed Description

A log entry.

Entries are the basic element of logging within the library. Note that although many of the members are character strings, they are not guaranteed to be NULL terminated and should not be used with standard string functions.

Field Documentation

◆ app_name

char stumpless_entry::app_name[48+1]

The app name of this entry, as a NULL-terminated string.

◆ app_name_length

size_t stumpless_entry::app_name_length

The length of the app name, without the NULL terminator.

◆ element_count

size_t stumpless_entry::element_count

The number of elements in this entry.

◆ elements

struct stumpless_element** stumpless_entry::elements

An array holding the elements of this entry.

◆ hostname

char stumpless_entry::hostname[255+1]

The hostname of this entry, as a NULL-terminated string.

Since
release v2.1.0

◆ hostname_length

size_t stumpless_entry::hostname_length

The length of the hostname of this entry (in bytes), without a NULL terminator.

If this is zero, then the default hostname will be used.

Since
release v2.1.0

◆ id

stumpless_id_t stumpless_entry::id

A unique identifier of this entry.

◆ message

char* stumpless_entry::message

The message of this entry, as a NULL-terminated string.

◆ message_length

size_t stumpless_entry::message_length

The length of the message in bytes, without the NULL terminator.

◆ msgid

char stumpless_entry::msgid[32+1]

The message id of this entry, as a NULL-terminated string.

◆ msgid_length

size_t stumpless_entry::msgid_length

The length of the message id, without the NULL terminator.

◆ mutex

void* stumpless_entry::mutex

A pointer to a mutex which protects all entry fields.

The exact type of this mutex depends on the build.

◆ prival

int stumpless_entry::prival

The prival of this entry.

This is a combination of the facility and severity of the event, combined using a bitwise or.

◆ procid

char stumpless_entry::procid[128+1]

The procid of this entry, as a NULL-terminated string.

Since
release v2.1.0

◆ procid_length

size_t stumpless_entry::procid_length

The length of the procid of this entry (in bytes), without a NULL terminator.

If this is zero, then the default procid will be used.

Since
release v2.1.0

◆ wel_data

void* stumpless_entry::wel_data

A pointer to a wel_data structure.


The documentation for this struct was generated from the following file: