Tezos_base_unix.SyslogSourceSyslog primitives based on the syslog(3) function.
See RFC 3164 for more information.
The various kinds of syslog output.
A syslog logger
Creates a syslog logger.
create tag ?path ?with_pid facility opens the socket or the file path and returns a syslog logger. Messages logged through this logger with syslog are prepended with tag and send to facility.
path default value is, if exists, in this order: "dev/log", "/var/run/syslog", ""with_pid is true (the default false), include the caller's PID in each message.val format_message :
?max_buflen:int ->
tag:string ->
facility:facility ->
with_pid:bool ->
Tezos_event_logging.Internal_event.level ->
string ->
stringformat_message ?max_buflen logger level message formats the given message depending on logger and level
max_buflen is the maximum length of the complete message after which text is replaced by .... Default to 1024 due to original standard.val syslog :
?max_buflen:int ->
t ->
Tezos_event_logging.Internal_event.level ->
string ->
unit Lwt.tsyslog ?max_buflen logger level message formats message (using format_msg) and sends the result to the logger file descriptor with the appropriate level.