Struct aptos_logger_link::aptos_logger::AptosDataBuilder
source · pub struct AptosDataBuilder { /* private fields */ }
Expand description
A builder for a AptosData
, configures what, where, and how to write logs.
Implementations
sourceimpl AptosDataBuilder
impl AptosDataBuilder
pub fn new() -> Self
pub fn address(&mut self, address: String) -> &mut Self
pub fn enable_backtrace(&mut self) -> &mut Self
pub fn read_env(&mut self) -> &mut Self
pub fn level(&mut self, level: Level) -> &mut Self
pub fn remote_level(&mut self, level: Level) -> &mut Self
pub fn telemetry_level(&mut self, level: Level) -> &mut Self
pub fn channel_size(&mut self, channel_size: usize) -> &mut Self
pub fn printer(
&mut self,
printer: Box<dyn Writer + Send + Sync + 'static>
) -> &mut Self
pub fn console_port(&mut self, console_port: Option<u16>) -> &mut Self
pub fn remote_log_tx(&mut self, remote_log_tx: Sender<TelemetryLog>) -> &mut Self
pub fn is_async(&mut self, is_async: bool) -> &mut Self
pub fn enable_telemetry_flush(
&mut self,
enable_telemetry_flush: bool
) -> &mut Self
pub fn custom_format(
&mut self,
format: fn(_: &LogEntry) -> Result<String, Error>
) -> &mut Self
pub fn init(&mut self)
pub fn build(&mut self) -> Arc<AptosData>
Auto Trait Implementations
impl !RefUnwindSafe for AptosDataBuilder
impl Send for AptosDataBuilder
impl Sync for AptosDataBuilder
impl Unpin for AptosDataBuilder
impl !UnwindSafe for AptosDataBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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