Home
last modified time | relevance | path

Searched refs:with_target (Results 1 – 24 of 24) sorted by relevance

/third_party/rust/crates/tracing/tracing-subscriber/tests/layer_filters/
Dtrees.rs5 let (with_target, with_target_handle) = layer::named("info_with_target") in basic_trees()
6 .event(event::mock().at_level(Level::INFO).with_target("my_target")) in basic_trees()
14 .with_target(module_path!()), in basic_trees()
16 .event(event::mock().at_level(Level::INFO).with_target("my_target")) in basic_trees()
24 .with_target(module_path!()), in basic_trees()
27 .event(event::mock().at_level(Level::INFO).with_target("my_target")) in basic_trees()
31 .with_target("my_target"), in basic_trees()
38 with_target.with_filter(filter::filter_fn(|meta| dbg!(meta.target()) == "my_target")), in basic_trees()
59 .enter(span::mock().with_target(target).at_level(Level::INFO)) in filter_span_scopes()
62 .in_scope(vec![span::mock().with_target(target).at_level(Level::INFO)]), in filter_span_scopes()
[all …]
Dfilter_scopes.rs72 .enter(span::mock().with_target(target)) in filters_interleaved_span_scopes()
73 .enter(span::mock().with_target(target)) in filters_interleaved_span_scopes()
75 span::mock().with_target(target), in filters_interleaved_span_scopes()
76 span::mock().with_target(target), in filters_interleaved_span_scopes()
81 span::mock().with_target(target), in filters_interleaved_span_scopes()
82 span::mock().with_target(target), in filters_interleaved_span_scopes()
84 .with_target(target), in filters_interleaved_span_scopes()
86 .exit(span::mock().with_target(target)) in filters_interleaved_span_scopes()
87 .exit(span::mock().with_target(target)) in filters_interleaved_span_scopes()
95 .enter(span::mock().with_target("b")) in filters_interleaved_span_scopes()
[all …]
Dtargets.rs22 .with_target(inner::MODULE_PATH, LevelFilter::WARN); in log_events()
45 let filter = Targets::new().with_target("magic_target", LevelFilter::DEBUG); in inner_layer_short_circuits()
Dcombinators.rs13 .with_target("interesting_target"), in and()
/third_party/rust/crates/tracing/tracing-attributes/tests/
Dtargets.rs29 .with_target(module_path!()), in default_targets()
34 .with_target(module_path!()), in default_targets()
39 .with_target(module_path!()), in default_targets()
44 .with_target(my_mod::MODULE_PATH), in default_targets()
49 .with_target(my_mod::MODULE_PATH), in default_targets()
54 .with_target(my_mod::MODULE_PATH), in default_targets()
70 .new_span(span::mock().named("custom_target").with_target("my_target")) in custom_targets()
71 .enter(span::mock().named("custom_target").with_target("my_target")) in custom_targets()
72 .exit(span::mock().named("custom_target").with_target("my_target")) in custom_targets()
76 .with_target("my_other_target"), in custom_targets()
[all …]
Dinstrument.rs26 .with_target("my_target"); in override_everything()
30 .with_target("my_target"); in override_everything()
59 .with_target("my_target"); in fields()
64 .with_target("my_target"); in fields()
112 .with_target("my_target"); in skip()
117 .with_target("my_target"); in skip()
122 .with_target("my_target"); in skip()
Derr.rs207 let span = span::mock().named("error_span").with_target("my_target"); in test_err_custom_target()
215 .with_target("my_target"), in test_err_custom_target()
Dret.rs45 .with_target("my_target"); in test_custom_target()
54 .with_target("my_target"), in test_custom_target()
/third_party/rust/crates/tracing/tracing-subscriber/tests/env_filter/
Dmain.rs71 .event(event::mock().at_level(Level::DEBUG).with_target("stuff")) in level_filter_event_with_target()
72 .event(event::mock().at_level(Level::WARN).with_target("stuff")) in level_filter_event_with_target()
74 .event(event::mock().at_level(Level::ERROR).with_target("stuff")) in level_filter_event_with_target()
140 .event(event::mock().at_level(Level::DEBUG).with_target("stuff")) in not_order_dependent()
141 .event(event::mock().at_level(Level::WARN).with_target("stuff")) in not_order_dependent()
143 .event(event::mock().at_level(Level::ERROR).with_target("stuff")) in not_order_dependent()
173 .event(event::mock().at_level(Level::INFO).with_target("hello")) in add_directive_enables_event()
174 .event(event::mock().at_level(Level::TRACE).with_target("hello")) in add_directive_enables_event()
306 .event(event::mock().at_level(Level::DEBUG).with_target("stuff")) in level_filter_event_with_target()
307 .event(event::mock().at_level(Level::WARN).with_target("stuff")) in level_filter_event_with_target()
[all …]
Dper_layer.rs65 .event(event::mock().at_level(Level::DEBUG).with_target("stuff")) in level_filter_event_with_target()
66 .event(event::mock().at_level(Level::WARN).with_target("stuff")) in level_filter_event_with_target()
68 .event(event::mock().at_level(Level::ERROR).with_target("stuff")) in level_filter_event_with_target()
132 .event(event::mock().at_level(Level::DEBUG).with_target("stuff")) in not_order_dependent()
133 .event(event::mock().at_level(Level::WARN).with_target("stuff")) in not_order_dependent()
135 .event(event::mock().at_level(Level::ERROR).with_target("stuff")) in not_order_dependent()
166 .event(event::mock().at_level(Level::INFO).with_target("hello")) in add_directive_enables_event()
167 .event(event::mock().at_level(Level::TRACE).with_target("hello")) in add_directive_enables_event()
/third_party/rust/crates/tracing/tracing-subscriber/tests/
Dutils.rs12 .with_target("init_works"), in init_ext_works()
27 .with_target(false) in builders_are_init_ext()
/third_party/rust/crates/tracing/examples/examples/
Dfmt-source-locations.rs16 .with_target(false) in main()
Dfmt-custom-event.rs12 .with_target(false); // don't include targets in main()
Djournald.rs10 tracing_subscriber::registry().with(tracing_subscriber::fmt::layer().with_target(false)); in main()
/third_party/rust/crates/tracing/tracing-mock/src/
Devent.rs62 pub fn with_target<I>(self, target: I) -> Self in with_target() method
Dspan.rs56 pub fn with_target<I>(self, target: I) -> Self in with_target() method
/third_party/rust/crates/tracing/tracing-subscriber/src/fmt/
Dfmt_layer.rs431 pub fn with_target(self, display_target: bool) -> Layer<S, N, format::Format<L, T>, W> { in with_target() function
433 fmt_event: self.fmt_event.with_target(display_target), in with_target()
1444 .with_target(false) in make_writer_based_on_meta()
Dmod.rs647 pub fn with_target( in with_target() function
652 inner: self.inner.with_target(display_target), in with_target()
/third_party/rust/crates/tracing/tracing-appender/src/
Drolling.rs956 .with_target(false) in test_make_writer()
1038 .with_target(false) in test_max_log_files()
/third_party/rust/crates/tracing/tracing-subscriber/src/filter/
Dtargets.rs218 pub fn with_target(mut self, target: impl Into<String>, level: impl Into<LevelFilter>) -> Self { in with_target() method
/third_party/rust/crates/tracing/tracing/tests/
Devent.rs144 .with_target("whatever"), in one_with_everything()
Dspan.rs616 .with_target("app_span") in new_span_with_target_and_log_level()
/third_party/rust/crates/tracing/tracing-subscriber/src/fmt/format/
Dmod.rs735 pub fn with_target(self, display_target: bool) -> Format<F, T> { in with_target() method
1746 .with_target(false) in disable_everything()
/third_party/rust/crates/tracing/tracing-subscriber/
DCHANGELOG.md1078 - **fmt**: Incorrect formatting with `with_target(false)` (#481)