Lines Matching full:logging
8 //! with the logging facade exposed by the [`log` crate][log-crate-url].
61 //! And enable all logging:
86 //! ## Enabling logging
88 //! **By default all logging is disabled except for the `error` level**
90 //! The **`RUST_LOG`** environment variable controls logging with the syntax:
118 //! log level is optional. If omitted, all logging for the item will be
127 //! - `off` (pseudo level to disable all logging for the target)
129 //! Logging level names are case-insensitive; e.g.,
130 //! `debug`, `DEBUG`, and `dEbuG` all represent the same logging level. For
137 //! - `RUST_LOG=hello` turns on all logging for the `hello` module
138 //! - `RUST_LOG=trace` turns on all logging for the application, regardless of its name
139 //! - `RUST_LOG=TRACE` turns on all logging for the application, regardless of its name (same as pr…
140 //! - `RUST_LOG=info` turns on all info logging
141 //! - `RUST_LOG=INFO` turns on all info logging (same as previous)
142 //! - `RUST_LOG=hello=debug` turns on debug logging for `hello`
143 //! - `RUST_LOG=hello=DEBUG` turns on debug logging for `hello` (same as previous)
144 //! - `RUST_LOG=hello,std::option` turns on `hello`, and std's option logging
145 //! - `RUST_LOG=error,hello=warn` turn on global error logging and also warn for `hello`
146 //! - `RUST_LOG=error,hello=off` turn on global error logging, but turn off logging for `hello`
147 //! - `RUST_LOG=off` turns off all logging for the application
148 //! - `RUST_LOG=OFF` turns off all logging for the application (same as previous)
155 //! log string but before adding any logging meta-data. There is a single filter
160 //! * `hello/foo` turns on all logging for the 'hello' module where the log
162 //! * `info/f.o` turns on all info logging where the log message includes 'foo',
164 //! * `hello=debug/foo*foo` turns on debug logging for 'hello' where the log
166 //! * `error,hello=warn/[0-9]scopes` turn on global error logging and also