Struct tracing_log::TraceLogger
source · [−]pub struct TraceLogger { /* private fields */ }
use the tracing
crate’s “log” feature flag instead
Expand description
A tracing
Subscriber
implementation that logs all recorded
trace events.
Note: This API has been deprecated since version 0.1.1. In order to emit
tracing
events as log
records, the “log” and “log-always” feature
flags on the tracing
crate should be used instead.
Implementations
sourceimpl TraceLogger
impl TraceLogger
Trait Implementations
sourceimpl Debug for TraceLogger
impl Debug for TraceLogger
sourceimpl Default for TraceLogger
impl Default for TraceLogger
sourceimpl Subscriber for TraceLogger
impl Subscriber for TraceLogger
sourcefn new_span(&self, attrs: &Attributes<'_>) -> Id
fn new_span(&self, attrs: &Attributes<'_>) -> Id
sourcefn record_follows_from(&self, span: &Id, follows: &Id)
fn record_follows_from(&self, span: &Id, follows: &Id)
Adds an indication that span
follows from the span with the id
follows
. Read more
sourcefn clone_span(&self, id: &Id) -> Id
fn clone_span(&self, id: &Id) -> Id
sourcefn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
sourcefn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
Returns the highest verbosity level that this Subscriber
will
enable, or None
, if the subscriber does not implement level-based
filtering or chooses not to implement this method. Read more
sourcefn event_enabled(&self, event: &Event<'_>) -> bool
fn event_enabled(&self, event: &Event<'_>) -> bool
sourcefn drop_span(&self, _id: Id)
fn drop_span(&self, _id: Id)
use Subscriber::try_close
instead
This method is deprecated. Read more
sourcefn current_span(&self) -> Current
fn current_span(&self) -> Current
Returns a type representing this subscriber’s view of the current span. Read more
Auto Trait Implementations
impl RefUnwindSafe for TraceLogger
impl Send for TraceLogger
impl Sync for TraceLogger
impl Unpin for TraceLogger
impl UnwindSafe for TraceLogger
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