}</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Extends log <code>Event</code>s to provide complete <code>Metadata</code>.</p>
<p>In <code>tracing-log</code>, an <code>Event</code> produced by a log (through <ahref="trait.AsTrace.html"title="trait tracing_log::AsTrace"><code>AsTrace</code></a>) has an hard coded
“log” target and no <code>file</code>, <code>line</code>, or <code>module_path</code> attributes. This happens because <code>Event</code>
requires its <code>Metadata</code> to be <code>'static</code>, while <ahref="../log/struct.Record.html"title="struct log::Record"><code>log::Record</code></a>s provide them with a generic
lifetime.</p>
<p>However, these values are stored in the <code>Event</code>’s fields and
the <ahref="trait.NormalizeEvent.html#normalized_metadata"title="trait tracing_log::NormalizeEvent"><code>normalized_metadata</code></a> method allows to build a new <code>Metadata</code>
that only lives as long as its source <code>Event</code>, but provides complete
data.</p>
<p>It can typically be used by <code>Subscriber</code>s when processing an <code>Event</code>,
to allow accessing its complete metadata in a consistent way,
</div></details><h2id="required-methods"class="section-header">Required Methods<ahref="#required-methods"class="anchor">§</a></h2><divclass="methods"><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.normalized_metadata"class="method"><aclass="src rightside"href="../src/tracing_log/lib.rs.html#461">source</a><h4class="code-header">fn <ahref="#tymethod.normalized_metadata"class="fn">normalized_metadata</a>(&'a self) -><aclass="enum"href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="../tracing_core/metadata/struct.Metadata.html"title="struct tracing_core::metadata::Metadata">Metadata</a><'a>></h4></section></summary><divclass="docblock"><p>If this <code>Event</code> comes from a <code>log</code>, this method provides a new
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.is_log"class="method"><aclass="src rightside"href="../src/tracing_log/lib.rs.html#463">source</a><h4class="code-header">fn <ahref="#tymethod.is_log"class="fn">is_log</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether this <code>Event</code> represents a log (from the <code>log</code> crate)</p>