Module Rfc5424

module Tag : sig ... end
type t = {
header : header;
structured_data : sd_element list;
msg : [ `Utf8 of string | `Ascii of string ];
}
and sd_element = {
section : string;
defs : Tag.tydef list;
tags : Logs.Tag.set;
}
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;
}
val create_sd_element : ?⁠defs:Tag.tydef list -> section:string -> tags:Logs.Tag.set -> sd_element
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 -> t
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, Stdlib.Format.formatter, unit, t) Stdlib.format4 -> 'a
val equal : t -> t -> bool
val pp : Stdlib.Format.formatter -> t -> unit
val to_string : t -> string
val show : t -> string
val of_string : string -> (tt Tyre.error) Stdlib.result
val severity_of_level : Logs.level -> Syslog_message.severity