Files
archy/core/target/debug/deps/libtracing_log-403c1f3ded34d6d6.rmeta
T

162 lines
63 KiB
Plaintext
Raw Normal View History

rust
û#rustc 1.93.0 (254b59607 2026-01-19)Áõ…·fÊ ¦%g--c48c539199cbc88bÁ³VOÐêùÿ²?ÑL¼§Ì±-a7a40eb546f9e2b0Áá\ƒ¦è3$|]åŒ[IÚ tæ-14b12edc9f8cd90bÁë&Gf·Ã ¬ëñq:¤»b-bb76018b1173caf6Áà 9m Ù„«ÐÒþá•cB;-030c5b0bba47cc8fÁrustc_std_workspace_coreÁÛ¹þÓ7>H%¸ÚÉ­-4b81d37a5530864dÁüÃùs<Uß7VyóHr#QÏ-c66cc7807550ce25Á miniz_oxideÁõFÖˆÚ™ª‹"ÞXzLVª-62cbc7af83058505Áadler2Á—wÉD‘嵯|6¨%Œ
+-2f171dd2394b4b62Á hashbrownÁ,ïcV¼¨ø¢:Ê\'È߈-9571ba9e0f6c7a90Árustc_std_workspace_allocÁ%¥Èxµù·¼5Ä3Bœ-aac566ad65903fa4Á
std_detectÁMmáýZ^9õ Îà§e˜÷e-2edb296e590136d8Árustc_demangleÁ@¼§VÉNb˜æ¨fHÌ+V3-53b132e4a2fa6e26Ácfg_ifÁfÝv.Å"ÒÜuPp¹ˆ¶-f76b385d7d4d7f3eÁ addr2lineÁÕú-WiúQVÓ¬
µT§5-fe25100bd73e48e4ÁgimliÁ¹xLáÇí÷‘o±Ñ8£Å-265ba9e6e4f70b3fÁobjectÁÔ³ÝzÓÿ¶ò°öM›¼òü`-9ae0d1f8ea52a318ÁmemchrÁRÎ÷׎™te~QÓ¿ØC\Ò-0bff3c8e8f4e489eÁ  –©HtGNÏ·ˆ!á-d69228d077d46f36Á once_cellÁq;÷î–¾auÄ;9"x¥-50f041e3c271b2a5Á tracing_coreÁW3mëž°Ø4•øöÐKÊœ-b7f48fb88fdcf9adÁlogÁ´räVRªg¨§>nÚÕ]²-2501793787257ff8Átry_cache_interestÁ”£*<Ì)interest-cacheÁ„Ö)ÔÌ)interest_cacheÁtö+<«+ú„µ+Ô«+InterestCacheConfigÁœé-<,ú„›,Ô‘,à$½’à$²’ 
  

log_tracerÁbuilderÁ init_with_filterÁinitÁ >Ø"impl FnOnce() -> boolÁ$enabledÁ% & $«$flushÁ* *with_max_levelÁ,impl Into<log::LevelFilter>Á* ignore_crateÁ.impl Into<String>Á*
ignore_allÁ00impl IntoIterator<Item = I>Á*· 4> format_traceÁdispatch_recordÁ9 : : : AsLogÁ>LogÁ>as_logÁAsTraceÁATraceÁAas_traceÁD'aÁFæF¢F¬JæLæLÇLÓFieldsÁPª
PÈPè
PÀPÈ  FIELD_NAMESÁW log_csÁ TRACE_FIELDSÁZ  DEBUG_FIELDSÁ\  INFO_FIELDSÁ^  WARN_FIELDSÁ`  ERROR_FIELDSÁb  level_to_csÁloglevel_to_csÁfæhæhÇhÓm¢m¬ 
qÇqÓ  uÇuÓ
y¢y¬NormalizeEventÁ|æ|normalized_metadataÁ|is_logÁææ Ð
LogVisitorÁæÈé
ÀÈ fieldsÁŽæŽnew_forÁæ record_debugÁ
record_u64Á
record_strÁsealedÁSealedÁ LogTracerÁ˜
ignore_cratesÁšÍBuilderÁœÜœfilterÁŸÍ
TraceCallsiteÁ¡
TRACE_CSÁ
TRACE_METAÁ¥ set_interestÁ¥metadataÁ
DebugCallsiteÁ¨
DEBUG_CSÁ
DEBUG_METAÁ¬ê¬þ InfoCallsiteÁ¯
INFO_CSÁ INFO_METAÁ³ê³þ WarnCallsiteÁ
WARN_CSÁ WARN_METAÁºêºþ
ErrorCallsiteÁ½
ERROR_CSÁ
ERROR_METAÁÁêÁþ"
"
%
%
%
(
(
(
)
8
8
9
9
@
C
I
O
k
o
s
w
{













 
 
 
¦
§
­
®
´
µ
»
¼
Â
Ã
>A|—à`˜˜ËÜnô¹îÍ3à`œœüÜž.bØòqûÄštšÄÍúúMetadataÁüÿ
ïýÈïþlevelÁïÿé
ïÀïÈ ïÄ ïGÝʪ²e^·æ>¨ÁÁ²ÃÛÄÈ-h˜:¸ ÏæAÌ'¡¡¢¬ DW¼š% '¨¨© Žý…`ü
'¯¯°Ú -]Ô“£'·¤ œ=«`'½½¾î 2®yf\’ E®®RecordÁ°þ±þ²é
³À´È /=
R, ýæAðƒLevelÁìï µL|öÅÿ>ä ÍÎÏÐÑÒWarnÁÓÔInfoÁÕÖ×ØÇ ÷2q"¡¢Aª!ëìíOffÁîïðñÊ òóÞ ôõö÷ÇiwQËóA«" LevelFilterÁìï ¸çÃSéò±>µ#××EventÁÙÄûÚþûÛparentÁûJÍ DDæ|$æ°ŠÈŠé
ÀŒÈ Ä~.sÞ‹[ûÿ暘Ÿœ ˜4œ$˜DúJÁf®lpÍtëx×FúmyLÁh®qÍu륡¬¨³¯ºÁ½×à`¬Ät >1A'|#°(   à §  
¶'BoxÁ샚íƒlÕ°Ù[¢'õ
ÉHÉHÊHœÜ3ËÚ¢×€JÜ•E•EEGlobalÁ Ï€ûkW¬ s¼È à`û
ša
- Eê³í³î³Òï³ìð³ñ³ò³ìäs{©¶ѼѼÒ¼ štÀ.Ç šÒ Á`Á`œÃ`è Á]Ä`bufÁÁ]Ê­\É:•¶' ¶')  Þ''Û+/Pþ^iÙ+)^«){( ó  ¶'Ð  
¶'ßAßA­âAœ*«<ãA¾ «<µ[<™éŸ(Ì(b)À ´  ¶'
«"& 
2 )ËÐ
œaáæÖÛns ø   ò)& Í1û*9¶'A¶'4)< ã,G¶'Ý)ä  «"ñœ/øˆþ¡/)˜š/)..»lý9$„:
ù¼ «"4ý94„:¼”:
œã,±: °:ü9”,üð9AÍ$á9Í$³9ˆ04¹9«"4ô9!%m‚0âÍ”«=ã,\Ã=$È=
ùñ Ÿ($Ã=4È=ü«=$$¾=
¹BŸ(Ì(fVŒ¾=$Ù=ã= â=üâ<.Í$œ=ÍDö<2$€=À* ã,æŸ(Ø,ÿ
0h‰2½2ÔÍŽ”ŸA
(L¦A
±J¢
4ŸA\¦A$·A
üŸA1$²A
×LÌ4°JÍ
.š
¥V”½A©5
ô²AÖAü¦@° ÕA03Í$é@Í$»@Ì44Á@œ5+Íß[)cratesÁ3Æ4h–5ùÍ$âe TÜe)Ôúg
«ä Ô½g
ªä Ìg
©ä ÌÆf
¨ä ÔŠf
§ä ¥hsü¨eýä œ¾e ª!,´eŒõe9m§ä ¨ä Á©ä ëªä «ä  $ÿi Tùi+ü’m  µ#üÉl  Áµ#ül Àµ#üºk ¿µ#üòj  ¾µ#ô«j
½µ#Ãmwü¿i„µ#ÌÕiœ/,ËiŒ9¬’j6j½µ#¾µ#À¿µ#ëÀµ#Áµ#Bµ#
,o ø°ú°û°Ðü°ý°þ°ìHˈXêE>ä \Šokq ƒ=ä ©ª«Ç¬­®¯°±Þ ²³´Ê µ·¸èàðCeÛN§¼­r
ë ¼äq
ë ´œq
ë ´Õp
ë ¼p
ë ¬Æo
ë Õr{üânó«"Lön µ#,ìnŒ9üéo ô¤oC89>APVZ\^`bde|‡¡¢£¤¨©ª«¯°±²·¸¹½¾¿ÀLazyÁ$Å'ÙÍÖ'ï+ioÁÛ'çcallsiteÁ$„( CallsiteÁDŠ('
dispatcherÁT™(z ¾$±(
FieldÁ,·(ßVisitÁ,¾(°identify_callsiteÁŒÊ( KindÁ$ì(øò,ò(
subscriberÁTþ(µ‹#,Š)ײD‘)úËL‡+˜6«›+ê›üNK Adapters for connecting unstructured log records from the `log` crate intoÁäO the `tracing` ecosystem.ÁlËtp # OverviewÁËüƒRO [`tracing`] is a framework for instrumenting Rust programs with context-aware,ÁüÖGD structured, event-based diagnostic information. This crate providesÁüžRO compatibility layers for using `tracing` alongside the logging facade providedÁÌñ by the [`log`] crate.ÁËÄ This crate provides:Á¨Ëü¬XU - [`AsTrace`] and [`AsLog`] traits for converting between `tracing` and `log` types.Áü…QN - [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]sÁü×-* and outputs them as [`tracing::Event`].ÁËü‰63 *Compiler support: [requires `rustc` 1.56+][msrv]*ÁÀËüÄ$! [msrv]: #supported-rust-versionsÁéË # UsageÁùËüý.+ ## Convert log records to tracing `Event`sÁ¬Ëü°VS To convert [`log::Record`]s as [`tracing::Event`]s, set `LogTracer` as the defaultÁü‡C@ logger by calling its [`init`] or [`init_with_filter`] methods.ÁËË ```rustÁäÛ # use std::error::Error;Áüø use tracing_log::LogTracer;Ád˜ use log;Á¥Ëü©+( # fn main() -> Result<(), Box<Error>> {Á¼Õ LogTracer::init()?;ÁíËüñ;8 // will be available for Subscribers as a tracing EventÁü­ (% log::trace!("an example trace log");Á # Ok(())Á # }Á ```Áó Ëü÷ NK This conversion does not convert unstructured data in log records (such asÁüÆ
HE values passed as format arguments to the `log!` macro) to structuredÁü JG `tracing` fields. However, it *does* attach these new events to to theÁüÚ MJ span that was currently executing when the record was logged. This is theÁü¨ KH primary use-case for this library: making it possible to locate the logÁüô KH records emitted by dependencies which use `log` within the context of aÁ
 trace.ÁË
ËüÏ
'$ ## Convert tracing `Event`s to logsÁ÷
Ëüû
OL Enabling the ["log" and "log-always" feature flags][flags] on the `tracing`ÁüËMJ crate will cause all `tracing` spans and events to emit `log::Record`s asÁ|™ they occur.Á©Ëü­'$ ## Caution: Mixing both conversionsÁÕËüÙTQ Note that `log::Logger` implementations that convert log records to trace eventsÁü®OL should not be used with `Subscriber`s that convert trace events _back_ intoÁüþXU `log` records, as doing so will result in the event recursing between the subscriberÁü×SP and the logger forever (or, in real life, probably overflowing the call stack).Á«Ëü¯MJ If the logging of trace events generated from log records produced by theÁüýHE `log` crate is desired, either the `log` crate should not be used toÁüÆGD implement this logging, or an additional layer of filtering will beÁüŽNK required to avoid infinitely converting between `Event` and `log::Record`.ÁÝˤá ## Feature FlagsÁöËüúTQ * `std`: enables features that require the Rust standard library (on by default)ÁüÏ@= * `log-tracer`: enables the `LogTracer` type (on by default)ÁüLI * `interest-cache`: makes it possible to configure an interest cache forÁüÝa^ logs emitted through the `log` crate (see [`Builder::with_interest_cache`]); requires `std`Á¿Ëôà ## Supported Rust VersionsÁâËüæMJ Tracing is built against the latest stable release. The minimum supportedÁü´NK version is 1.56. The current Tracing version is not guaranteed to build onÁüƒ=: Rust versions earlier than the minimum supported version.ÁÁËüÅOL Tracing follows the same compiler support policies as the rest of the TokioÁü•MJ project. The current stable Rust compiler and the three most recent minorÁüãLI versions before it will always be supported. For example, if the currentÁü°NK stable compiler version is 1.69, the minimum supported version will not beÁüÿKH increased past 1.66, three minor versions prior. Increasing the minimumÁüËLI supported compiler version is not considered a semver breaking change asÁü˜/, long as doing so complies with this policy.ÁÈËìÌ [`init`]: LogTracer::initÁüê52 [`init_with_filter`]: LogTracer::init_with_filterÁü 1. [`tracing`]: https://crates.io/crates/tracingÁüÒYV [`tracing::Subscriber`]: https://docs.rs/tracing/latest/tracing/trait.Subscriber.htmlÁü¬PM [`Subscriber`]: https://docs.rs/tracing/latest/tracing/trait.Subscriber.htmlÁüýPM [`tracing::Event`]: https://docs.rs/tracing/latest/tracing/struct.Event.htmlÁüÎ HE [flags]: https://docs.rs/tracing/latest/tracing/#crate-feature-flagsÁü—!NK [`Builder::with_interest_cache`]: log_tracer::Builder::with_interest_cacheÁ¡é! ì! Ÿ#8lò! €"7Nhttps://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.pngÁü‚"P$ Ò"8  ´Ø" ï"7+https://github.com/tokio-rs/tracing/issues/Áüñ"-üæ!»89>APVZ\^`bde|‡¡¢£¤¨©ª«¯°±²·¸¹½¾¿ÀkÞ@hÙÍgï+ˆAdçA[ ·AR'
ÑAGz ¾F
€B@ߘB:°°B( ÔB#øò"þBµ‹#ײú˘6«7£¦©¬´'œtÐ'üå'·tDù'adKNA,©(03!6ñôäçÍÐÀó”ô)»¡) ¤) »)8<¥) ­)7
log-tracerÁd¯)ôŸ)üFC An adapter for converting [`log`] records into `tracing` `Event`s.ÁGËüKPM This module provides the [`LogTracer`] type which implements `log`'s [loggerÁüœSP interface] by recording log records as `tracing` `Event`s. This is intended forÁüðKH use in conjunction with a `tracing` `Subscriber` to consume events fromÁü¼B? dependencies that emit [`log`] records within a trace context.ÁÿËíJËü“PM To create and initialize a `LogTracer` with the default configurations, use:ÁäËüèHE * [`init`] if you want to convert all logs, regardless of log level,Áü±@= allowing the tracing `Subscriber` to perform any filteringÁüòJG * [`init_with_filter`] to convert all logs up to a specified log levelÁ½ËüÁGD In addition, a [builder] is available for cases where more advancedÁü‰PM configuration is required. In particular, the builder can be used to [ignoreÁüÚNK log records][ignore] emitted by particular crates. This is useful in casesÁü©NK such as when a crate emits both `tracing` diagnostics _and_ log records byÁ default.ÁËü‰  [logger interface]: log::LogÁüª(% [`init`]: LogTracer.html#method.initÁüÓ@= [`init_with_filter`]: LogTracer.html#method.init_with_filterÁü” # [builder]: LogTracer::builder()Áü¸ %" [ignore]: Builder::ignore_crate()ÁTü)"˜œ¹ASetLoggerErrorÁtÿ õÑAT¡
zDœú *Ä“

š܇üJG Returns a builder that allows customizing a `LogTracer` and setting itÁ¼Ð the default logger.ÁìË„ô
For example:Á\‰ƒMä™–Müº»MâMïËü÷+Nħ LogTracer::builder()ÁüÄXU .ignore_crate("foo") // suppose the `foo` crate is using `tracing`'s log featureÁü¡/, .with_max_level(log::LevelFilter::Info)ÁŒÕ .init()?;ÁëËüó;àNü³&# log::info!("an example info log");ÁÔOèO÷O<ŽÍ
¤ÓüËTQ Creates a new `LogTracer` that can then be used as a logger for the `log` crate.Á¤Ëü¬OL It is generally simpler to use the [`init`] or [`init_with_filter`] methodsÁü€FC which will create the `LogTracer` and set it as the global logger.ÁËËüÓEB Logger setup without the initialization methods can be done with:Á˃Mäµ–MüÖ»MâMËü“+NüÃ" let logger = LogTracer::new();Áüê-* log::set_boxed_logger(Box::new(logger))?;Áüœ0- log::set_max_level(log::LevelFilter::Trace);ÁÑËüÙ;àNü™(¤OÔO<×èO÷OïËü÷ [`init`]: LogTracer::init()Áü›30 [`init_with_filter`]: .#method.init_with_filterÁÚš
üîNüÈ=: Sets up `LogTracer` as global logger for the `log` crate,ÁüŠ-* with the given level as max level filter.Á¼ËüÄ2/ Setting a global logger can only be done once.ÁûËüƒLI The [`builder`] function can be used to customize the `LogTracer` beforeÁ¤Ô initializing it.ÁíËüõ%" [`builder`]: LogTracer::builder()Á»¡ ¤ ´8 ­7¼Ÿ„õ«"ê³í³î³Òï³ìð³ñ³ò³ìäs{©¶À*õõöê|÷ì hr2L…
Û,†ü—(+üÿ@= Sets a `LogTracer` as the global logger for the `log` crate.ÁÄ ËüÌ 2Õ‰ƒ!Ë\‹!ƒMä›!–Mü¼!»Mdà!âMñ!Ëüù!+N¼©"µNÅ"ËüÍ";àNü#(¤Odº#ÔO<Ë#èO<×#÷Oã#Ëüë#MJ This will forward all logs to `tracing` and lets the current `Subscriber`Áü½$" determine if they are enabled.Áä$Ëüì$L›Š¤½%ïŠÖ%ËüÞ%>; If you know in advance you want to filter some log levels,Áü¡&41 use [`builder`] or [`init_with_filter`] instead.ÁÚ&Ëüâ&74 [`init_with_filter`]: LogTracer::init_with_filter()Áüž'%—‹»Ê' Í' Ý'8<Î' Ö'7,Ø'¼È'$ž(
Ôí(š!Å!¤Ž)<)š 
!üö*U»º* ½* ó*8Æ ¾* Á* ò*8àÂ* Å* ñ*8<Æ* Î*7ú„Ð*$ à*8<â* ê*7,ì*ü¸*=”ù*ÄÅ ÄÁÁ²ÃÛÄÈ-h˜:¸ ÏÅÓ Ó ## +©âû–¬­+û–À*„²+û–À*$¾+
"û– Œ+callbackÁD£+JLÜà+š%()uvw)(%ü‚,7<…,ÆÇÈ Æš ÇÁÁ²ÃÛÄÈ-h˜:¸ ÏÈ$ ,$
%$Ž,þD”,™3%<closure_kind>Á&<closure_signature>Á&<upvars>Á&&%&À*  ÁÁ²ÃÛÄÈ-h˜:¸ ÏT4%ï˜'‡™'¤™''%' ¸¸DispatchÁ¹þBz±·)•80ŠlÑšüß4'â4ÉÊË Éš Ê®®ú°þ±þ²é
³À´È /=
R, ýËÀ*$ æ4$
($ç4recordÁ4í4|÷5,ú5Ì ÌšÀ*$ €6$
)$6dª6Í+,.03¤ƒ7ü½696 Returns a new `Builder` to construct a [`LogTracer`].Áû6ËŠ7Í**
+ü9Hü½72/ Sets a global maximum level for `log` records.Áô7Ëüü7KH Log records whose level is more verbose than the provided level will beÁlÌ8
disabled.ÁÞ8Ëüæ82/ By default, all `log` records will be enabled.Át¤9͈0Í*¼ --*©âˆ0ÜÁ9÷ˆ0«"´Æ9
,ˆ0*,üâ<>ü·:EB Configures the `LogTracer` to ignore all log records whose targetÁü;! starts with the given string.Á§;Ëü¯;IF This should be used when a crate enables the `tracing/log` feature toÁüý;HE emit log records for tracing events. Otherwise, those events will beÁœÊ< recorded twice.Ádé<Í*ñ //*©â2Œ†=÷2Ÿ(d=
.2$ú<ÿ
9+-ü¦@jüé=Eé¡ü³>30 starts with any of the given the given strings.Áë>Ëüó>Iì¢üÁ?H¾£œŽ@ޤT­@ÍÌ4Í*š
1¢
221*©â®5 ¸@©âÌ4ÜÉ@÷®5Ÿ(dƒA®JÌ4´Î@Ì4¯J®5DÛ@
0®5Ì4«ß5´]_Z\üþN3üçLLI Constructs a new `LogTracer` with the provided configuration and sets itÁÔ¸M as the default logger.Á×MËüßM2Õ‰»˜N N «N8<œN ¤N7,¦N¼–N$…OÍ**
3$ŽOÄ«RÍ5Å5¤ÊR<ÍRÍ44
5Üõ*Ã!Ô!Ô!ü½.?üÿ-=: Format a log record as a trace event in the current span.ÁdÄ.ÍÎ Í®®ú°þ±þ²é
³À´È /=
R, ýÎê³í³î³Òï³ìð³ñ³ò³ìäs{©¶À*  ¡Ñ
íÓ¶neò¢Ëf Ù.
8íœ4Ñ.üÚ07|è0ÏÐ Ï®®ú°þ±þ²é
³À´È /=
R, ýÐÀ* €1
9íœ4ø0T°19ï˜:‡™:¤™::9:ä›À*  ®®ú°þ±þ²é