Function try_init_simple

Source
pub fn try_init_simple()
Expand description

Try to init a simple tracing subscriber with log compatibility layer.

Ignores any error. Useful for testing. Uses the default filter for logs.

Related functions:

  • init_for_tests(): Enables TRACE level.
  • [test_log_capture::init_log_capture()]: Captures logs for assertions and/or outputs logs.
  • [capture_test_logs!()]: A macro for capturing logs within test blocks.