Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Tag : sig ... end
type t = {
header : header;
structured_data : sd_element list;
msg : [ `Utf8 of string | `Ascii of string ];
}
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, Format.formatter, unit, t) format4 ->
'a
val pp : Format.formatter -> t -> unit
val to_string : t -> string
val show : t -> string
val of_string : string -> (t, t Tyre.error) result
val severity_of_level : Logs.level -> Syslog_message.severity