Function collectd_plugin::collectd_log
source · Expand description
Sends message and log level to collectd. This bypasses any configuration setup via
CollectdLoggerBuilder
, so collectd configuration soley determines if a level is logged
and where it is delivered. Messages that are too long are truncated (1024 was the max length as
of collectd-5.7).
In general, prefer CollectdLoggerBuilder
and direct all logging as one normally would
through the log
crate.
Panics
If a message containing a null character is given as a message this function will panic.