|
120 | 120 | //! * `debug`
|
121 | 121 | //! * `trace`
|
122 | 122 | //!
|
123 |
| -//! The letter case is not significant for the logging level names; e.g., |
124 |
| -//! `debug`, `DEBUG`, and `dEbuG` all represent the same logging level. |
125 |
| -//! |
126 | 123 | //! There is also a pseudo logging level, `off`, which may be specified to
|
127 | 124 | //! disable all logging for a given module or for the entire application. As
|
128 | 125 | //! with the logging levels, the letter case is not significant[^fn-off].
|
129 | 126 | //!
|
130 | 127 | //! [^fn-off]: Similar to the universe of log level names, the `off` pseudo
|
131 | 128 | //! log level feature is also provided by the underlying `log` crate.
|
132 | 129 | //!
|
| 130 | +//! The letter case is not significant for the logging level names; e.g., |
| 131 | +//! `debug`, `DEBUG`, and `dEbuG` all represent the same logging level. For |
| 132 | +//! consistency, our convention is to use the lower case names. Where our docs |
| 133 | +//! do use other forms, they do so in the context of specific examples, so you |
| 134 | +//! won't be surprised if you see similar usage in the wild. |
| 135 | +//! |
133 | 136 | //! As the log level for a module is optional, the module to enable logging for
|
134 | 137 | //! is also optional. **If only a level is provided, then the global log
|
135 | 138 | //! level for all modules is set to this value.**
|
|
146 | 149 | //! * `hello,std::option` turns on hello, and std's option logging
|
147 | 150 | //! * `error,hello=warn` turn on global error logging and also warn for hello
|
148 | 151 | //! * `error,hello=off`` turn on global error logging, but turn off logging for hello
|
149 |
| -//! * `OFF` turns off all logging for the application |
| 152 | +//! * `off` turns off all logging for the application |
| 153 | +//! * `OFF` turns off all logging for the application (same as previous) |
150 | 154 | //!
|
151 | 155 | //! ## Filtering results
|
152 | 156 | //!
|
|
0 commit comments