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 try_close(&self, id: Id) -> bool
fn try_close(&self, id: Id) -> bool
Notifies the subscriber that a [span ID
] has been dropped, and returns
true
if there are now 0 IDs that refer to that span. Read more
sourcefn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
Registers a new callsite with this subscriber, returning whether or not the subscriber is interested in being notified about the callsite. Read more
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 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more