January 2019
Intermediate to advanced
520 pages
14h 32m
English
We need basic types from the actix crate and import some types from the syslog crate:
use actix::{Actor, Context, Handler, Message};use syslog::{Facility, Formatter3164, Logger, LoggerBackend};
We don't need to study the syslog crate in detail, but let's discuss basic some types.
Logger is a main struct that allows writing methods to add records to syslog. It includes logging the methods order by level from highest to lowest: emerg, alert, crit, err, warning, notice, info, debug. The LoggerBackend enum specifies the type of a connection to a logger. It can be a socket or UNIX socket. The Facility enum specifies the type of application which writes ...
Read now
Unlock full access