stumpless 2.2.0
载入中...
搜索中...
未找到
stumpless_entry结构体 参考

A log entry. 更多...

#include <entry.h>

成员变量

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.
 
void * wel_data
 A pointer to a wel_data structure.
 
void * mutex
 A pointer to a mutex which protects all entry fields.
 

详细描述

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.

结构体成员变量说明

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

自从
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.

自从
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.

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

自从
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.

自从
release v2.1.0

◆ wel_data

void* stumpless_entry::wel_data

A pointer to a wel_data structure.


该结构体的文档由以下文件生成: