Struct argmin::core::ArgminSlogLogger [−][src]
pub struct ArgminSlogLogger { /* fields omitted */ }
A logger based on slog
Implementations
impl ArgminSlogLogger
[src]
impl ArgminSlogLogger
[src]pub fn term() -> Self
[src]
Log to the terminal in a blocking way
pub fn term_noblock() -> Self
[src]
Log to the terminal in a non-blocking way (in case of overflow, messages are dropped)
pub fn file(file: &str, truncate: bool) -> Result<Self, Error>
[src]
Log JSON to a file in a blocking way
If truncate
is set to true
, the content of existing log files at file
will be
cleared.
pub fn file_noblock(file: &str, truncate: bool) -> Result<Self, Error>
[src]
Log JSON to a file in a non-blocking way (in case of overflow, messages are dropped)
If truncate
is set to true
, the content of existing log files at file
will be
cleared.
Trait Implementations
impl Clone for ArgminSlogLogger
[src]
impl Clone for ArgminSlogLogger
[src]fn clone(&self) -> ArgminSlogLogger
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<O: ArgminOp> Observe<O> for ArgminSlogLogger
[src]
impl<O: ArgminOp> Observe<O> for ArgminSlogLogger
[src]Auto Trait Implementations
impl RefUnwindSafe for ArgminSlogLogger
impl RefUnwindSafe for ArgminSlogLogger
impl Send for ArgminSlogLogger
impl Send for ArgminSlogLogger
impl Sync for ArgminSlogLogger
impl Sync for ArgminSlogLogger
impl Unpin for ArgminSlogLogger
impl Unpin for ArgminSlogLogger
impl UnwindSafe for ArgminSlogLogger
impl UnwindSafe for ArgminSlogLogger
Blanket Implementations
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,