stumpless 2.2.0
Loading...
Searching...
No Matches
stumpless_entry Struct Reference

A log entry. More...

#include <entry.h>

Data Fields

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

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.

Examples
entry_example.c, file_example.c, filter_example.c, function_example.c, journald_example.c, socket_example.c, sqlite3_example.c, stream_example.c, tcp_example.c, udp_example.c, and wel_example.c.

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.

This may be NULL if the entry does not have a message set.

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

◆ 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

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