Function collectd_plugin::collectd_log [] [src]

pub fn collectd_log(lvl: LogLevel, message: &str)

Sends message and log level to collectd. Collectd configuration 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).

Panics

If a message containing a null character is given as a message this function will panic.