Crate syslog_rs[][src]

Expand description

syslog-rs

An implementation of the syslog from glibc/libc like it was designed in in both system libraries. The API is almost compatible with what is in libc/glibc.

Supported GNU/Linux and *BSD (incl OSX, but not guaranteed)

Files:

  • syslog_sync.rs - contains the thread-safe realization of the syslog (sync)
  • syslog_async.rs - contains the async realization of the syslog (async)
  • syslog_sync_queue.rs - constains the sync realization, with asynchronious processing.
  • portable.rs - all system level code which is portable
  • common.rs - a common items
  • socket.rs - contains socket realization
  • error.rs - an error wrapper and mapper

Features:

  • feature = “use_async” for asynchronious code
  • feature = “use_sync” for synchronious code
  • feature = “use_sync_queue” for synchronious with async processing

Re-exports

pub use syslog_sync::*;
pub use common::*;

Modules

common
error
portable
socket
syslog_sync

Macros

LOG_MASK

LOG_MASK is used to create the priority mask in setlogmask. For a single Priority mask used with Priority can be used with | & ! bit operations LOG_MASK()

LOG_UPTO

LOG_MASK is used to create the priority mask in setlogmask For a mask UPTO specified used with Priority

map_error
map_error_code
throw_error
throw_error_code