[][src]Struct dpdk_unix::logging::LoggingConfiguration

pub struct LoggingConfiguration {
    pub syslog_facility: SyslogFacility,
    pub syslog_priority: SyslogPriority,
    pub identity: String,
    pub enable_full_rust_stack_back_traces: bool,
}

Logging configuration.

Fields

syslog_facility: SyslogFacility

Defaults to auth.

syslog_priority: SyslogPriority

Defaults to debug for debug builds and warning for production builds.

DPDK also supports specifying either a regex or a pattern; this is not supported by LoggingConfiguration at this time.

identity: String

Up to 31 bytes (more are ignored) identifying the source of log messages.

Defaults to program name.

enable_full_rust_stack_back_traces: bool

When a panic occurs that isn't caught (or if the error-chain crate is in use), capture a full stack back trace.

Methods

impl LoggingConfiguration[src]

pub fn warn(name: &str, message: String)[src]

Issues a warning (currently to syslog).

pub fn start_logging(&self, running_interactively: bool)[src]

Start logging.

pub fn stop_logging(&self)[src]

Stop logging.

Trait Implementations

impl Eq for LoggingConfiguration[src]

impl Clone for LoggingConfiguration[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd<LoggingConfiguration> for LoggingConfiguration[src]

impl PartialEq<LoggingConfiguration> for LoggingConfiguration[src]

impl Default for LoggingConfiguration[src]

impl Ord for LoggingConfiguration[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for LoggingConfiguration[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for LoggingConfiguration[src]

impl Serialize for LoggingConfiguration[src]

impl<'de> Deserialize<'de> for LoggingConfiguration where
    LoggingConfiguration: Default
[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]