pub fn openlog(
ident: Option<&'static CStr>,
logopt: LogFlags,
facility: Facility,
) -> Result<()>
Available on crate feature
syslog
only.Expand description
Logging options of subsequent syslog
calls can be set by calling openlog
.
The parameter ident
is a string that will be prepended to every message. The logopt
argument specifies logging options. The facility
parameter encodes a default facility to be
assigned to all messages that do not have an explicit facility encoded.