pub(crate) fn init_logging()Expand description
Install the logger backend and the panic hook the example reports through.
The backend follows the terminal the platform has: env_logger writes to
the standard error a command line owns, logcat takes an activity’s, and the
browser console takes a page’s. RUST_LOG selects the level where there is
an environment to read it from, and info is the default, so the example’s
own startup messages are visible without a variable. A panic surfaces as an
opaque unreachable executed on the web unless the hook logs it with its
stack first.