package syslog-rfc5424
Module Rfc5424Source
Source
type t = {header : header;structured_data : sd_element list;msg : [ `Utf8 of string | `Ascii of string ];
}Source
and header = {facility : Syslog_message.facility;severity : Syslog_message.severity;version : int;ts : Ptime.t;tz_offset_s : int option;hostname : string;app_name : string;procid : string;msgid : string;
}Source
val create_sd_element :
?defs:Tag.tydef list ->
section:string ->
tags:Logs.Tag.set ->
sd_elementSource
val create :
?facility:Syslog_message.facility ->
?severity:Syslog_message.severity ->
?ts:Ptime.t ->
?tz_offset_s:int ->
?hostname:string ->
?app_name:string ->
?procid:string ->
?msgid:string ->
?structured_data:sd_element list ->
?msg:[ `Utf8 of string | `Ascii of string ] ->
unit ->
tSource
val fcreate :
?facility:Syslog_message.facility ->
?severity:Syslog_message.severity ->
?ts:Ptime.t ->
?tz_offset_s:int ->
?hostname:string ->
?app_name:string ->
?procid:string ->
?msgid:string ->
?structured_data:sd_element list ->
unit ->
('a, Format.formatter, unit, t) format4 ->
'a