Struct aether::LoggerBuilder
source · [−]pub struct LoggerBuilder<EP: EndpointSuper> { /* private fields */ }
Expand description
Builder for the logger type.
Implementations
sourceimpl<EP: EndpointSuper + Hash> LoggerBuilder<EP>
impl<EP: EndpointSuper + Hash> LoggerBuilder<EP>
sourcepub fn format(self, fmt: fn(_: LogEntry<'_, EP>) -> String) -> Self
pub fn format(self, fmt: fn(_: LogEntry<'_, EP>) -> String) -> Self
Sets the format for all log entries.
sourcepub fn base_path(self, path: impl AsRef<Path>) -> Self
pub fn base_path(self, path: impl AsRef<Path>) -> Self
Specifies the base path for files and archives.
sourcepub fn setup(
self,
endpoint: EP,
setup: fn(_: EndpointBuilder) -> EndpointBuilder
) -> Self
pub fn setup(
self,
endpoint: EP,
setup: fn(_: EndpointBuilder) -> EndpointBuilder
) -> Self
Setup an endpoint.
Auto Trait Implementations
impl<EP> RefUnwindSafe for LoggerBuilder<EP>
impl<EP> Send for LoggerBuilder<EP>
impl<EP> Sync for LoggerBuilder<EP>
impl<EP> Unpin for LoggerBuilder<EP>
impl<EP> UnwindSafe for LoggerBuilder<EP>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more