pub struct LoggerConfig { /* private fields */ }Expand description
Logger configuration
Implementations§
Source§impl LoggerConfig
impl LoggerConfig
Sourcepub fn new(
console: bool,
syslog: bool,
datastore: Option<DatastoreConfig>,
allowed_targets: Vec<&'static str>,
) -> Self
pub fn new( console: bool, syslog: bool, datastore: Option<DatastoreConfig>, allowed_targets: Vec<&'static str>, ) -> Self
Creates a new logger configuration
§Arguments
console- Whether to log to consolesyslog- Whether to log to syslogdatastore- Datastore configuration (useNoneto disable logging to Datastore)allowed_targets- The list of allowed targets.
By default, only logs fromnullnet*,appguard*, andwallguard*will be emitted.
Use this parameter to specify additional targets (e.g., specifying “serde” will emit logs for all targets whose name is in the formserde*).
Auto Trait Implementations§
impl Freeze for LoggerConfig
impl !RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl !UnwindSafe for LoggerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request