pub struct LoggingOptions<'a> {
pub tags: &'a [&'static str],
pub interest: Interest,
pub blocking: bool,
pub panic_prefix: &'static str,
pub always_log_file_line: bool,
}
Expand description
Options used when initializing logging.
Fields§
Tags with which to initialize the logging system. All logs will carry the tags configured here.
interest: Interest
Allows to configure the minimum severity of the logs being emitted. Logs of lower severity won’t be emitted.
blocking: bool
Whether or not logs will be blocking. By default logs are dropped when they can’t be written to the socket. However, when this is set, the log statement will block until the log can be written to the socket or the socket is closed.
NOTE: this is ignored on host
.
panic_prefix: &'static str
String to include in logged panic messages.
always_log_file_line: bool
True to always log file/line information, false to only log when severity is ERROR or above.
Trait Implementations§
Source§impl<'a> Clone for LoggingOptions<'a>
impl<'a> Clone for LoggingOptions<'a>
Source§fn clone(&self) -> LoggingOptions<'a>
fn clone(&self) -> LoggingOptions<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Default for LoggingOptions<'a>
impl<'a> Default for LoggingOptions<'a>
Source§fn default() -> LoggingOptions<'a>
fn default() -> LoggingOptions<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<LoggingOptions<'a>> for PublishOptions<'a>
impl<'a> From<LoggingOptions<'a>> for PublishOptions<'a>
Source§fn from(logging: LoggingOptions<'a>) -> Self
fn from(logging: LoggingOptions<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for LoggingOptions<'a>
impl<'a> RefUnwindSafe for LoggingOptions<'a>
impl<'a> Send for LoggingOptions<'a>
impl<'a> Sync for LoggingOptions<'a>
impl<'a> Unpin for LoggingOptions<'a>
impl<'a> UnwindSafe for LoggingOptions<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)