Lines Matching +full:stability +full:- +full:tests
5 [](https://env-logger-rs.github.io…
45 [2018-11-03T06:09:06Z INFO default] starting up
55 [2018-11-03T06:09:06Z INFO default] starting up
63 The log levels that may be specified correspond to the [`log::Level`][level-enum]
72 [level-enum]: https://docs.rs/log/latest/log/enum.Level.html "log::Level (docs.rs)"
78 …sides an environment variable. See [the examples](https://github.com/env-logger-rs/env_logger/tree…
80 ### In tests
82 Tests can use the `env_logger` crate to see log messages generated during that test:
88 [dev-dependencies]
96 fn add_one(num: i32) -> i32 {
102 mod tests {
122 assert_eq!(-7, add_one(-8));
127 Assuming the module under test is called `my_lib`, running the tests with the
132 Running target/debug/my_lib-...
134 running 2 tests
135 [INFO my_lib::tests] logging from another test
136 [INFO my_lib] add_one called with -8
137 test tests::it_handles_negative_numbers ... ok
138 [INFO my_lib::tests] can log from the test too
140 test tests::it_adds_one ... ok
146 want to enable logging. Additionally, the default behavior of tests to
148 Either run tests in a single thread by specifying `RUST_TEST_THREADS=1` or by
154 Running target/debug/my_lib-...
157 [INFO my_lib::tests] can log from the test too
159 test tests::it_adds_one ... ok
179 ## Stability of the default format
181 …he default format won't optimise for long-term stability, and explicitly makes no guarantees about…