nmsg  0.9.0
Variables
logline.c File Reference

base "logline" message type. More...

Go to the source code of this file.

Variables

struct nmsg_msgmod_field logline_fields []
 
struct nmsg_msgmod_plugin nmsg_msgmod_ctx
 

Detailed Description

base "logline" message type.

This message type is meant to be carry generic free-form log lines.

logline message fields.

Name Type Required Repeated

Description

category string no no

Free-form string containing the category of the log message.

message string no no

Free-form string containing the log message itself.

Definition in file logline.c.

Variable Documentation

struct nmsg_msgmod_field logline_fields[]
Initial value:
= {
{ .type = nmsg_msgmod_ft_string, .name = "category" },
{ .type = nmsg_msgmod_ft_string, .name = "message" },
NMSG_MSGMOD_FIELD_END
}
Protobuf byte array.
Definition: msgmod.h:84

Definition at line 25 of file logline.c.

struct nmsg_msgmod_plugin nmsg_msgmod_ctx
Initial value:
= {
NMSG_MSGMOD_REQUIRED_INIT,
.vendor = NMSG_VENDOR_BASE,
.msgtype = { NMSG_VENDOR_BASE_LOGLINE_ID, NMSG_VENDOR_BASE_LOGLINE_NAME },
.pbdescr = &nmsg__base__log_line__descriptor,
.fields = logline_fields
}

Definition at line 33 of file logline.c.