pub struct AndroidSink { /* private fields */ }
Available on Android and crate feature
native
and crate feature android-ndk
only.Expand description
A sink with Android NDK API __android_log_write
as the target.
Implementations§
Source§impl AndroidSink
impl AndroidSink
Sourcepub fn builder() -> AndroidSinkBuilder
pub fn builder() -> AndroidSinkBuilder
Gets a builder of AndroidSink
with default parameters:
Parameter | Default Value |
---|---|
level_filter | All |
formatter | AndroidFormatter |
error_handler | ErrorHandler::default() |
tag | AndroidSink::Default |
Sourcepub fn tag(&self) -> &AndroidLogTag
pub fn tag(&self) -> &AndroidLogTag
Gets how to choose a tag for Android logs.
Sourcepub fn set_tag(&mut self, tag: AndroidLogTag)
pub fn set_tag(&mut self, tag: AndroidLogTag)
Sets how to choose a tag for Android logs.
Trait Implementations§
Source§impl GetSinkProp for AndroidSink
impl GetSinkProp for AndroidSink
Auto Trait Implementations§
impl !Freeze for AndroidSink
impl !RefUnwindSafe for AndroidSink
impl Send for AndroidSink
impl Sync for AndroidSink
impl Unpin for AndroidSink
impl !UnwindSafe for AndroidSink
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> Pointable for T
impl<T> Pointable for T
Source§impl<S> SinkPropAccess for Swhere
S: GetSinkProp,
impl<S> SinkPropAccess for Swhere
S: GetSinkProp,
Source§fn level_filter(&self) -> LevelFilter
fn level_filter(&self) -> LevelFilter
Gets the log level filter.
Source§fn set_level_filter(&self, level_filter: LevelFilter)
fn set_level_filter(&self, level_filter: LevelFilter)
Sets the log level filter.
Source§fn set_formatter(&self, formatter: Box<dyn Formatter>)
fn set_formatter(&self, formatter: Box<dyn Formatter>)
Sets the formatter.
Source§fn set_error_handler(&self, handler: ErrorHandler)
fn set_error_handler(&self, handler: ErrorHandler)
Sets a error handler. Read more