Remove redundant examples from src/logging.rs

This commit is contained in:
Hirrolot 2022-02-05 01:01:24 +06:00
parent d4a4719b58
commit c2c9620b48

View file

@ -3,12 +3,8 @@
/// A logger will **only** print errors, warnings, and general information from /// A logger will **only** print errors, warnings, and general information from
/// teloxide and **all** logs from your program. /// teloxide and **all** logs from your program.
/// ///
/// # Example
/// ```no_compile
/// teloxide::enable_logging!();
/// ```
///
/// # Note /// # Note
///
/// Calling this macro **is not mandatory**; you can setup if your own logger if /// Calling this macro **is not mandatory**; you can setup if your own logger if
/// you want. /// you want.
/// ///
@ -27,6 +23,7 @@ macro_rules! enable_logging {
/// teloxide and restrict logs from your program by the specified filter. /// teloxide and restrict logs from your program by the specified filter.
/// ///
/// # Example /// # Example
///
/// Allow printing all logs from your program up to [`LevelFilter::Debug`] (i.e. /// Allow printing all logs from your program up to [`LevelFilter::Debug`] (i.e.
/// do not print traces): /// do not print traces):
/// ///
@ -35,6 +32,7 @@ macro_rules! enable_logging {
/// ``` /// ```
/// ///
/// # Note /// # Note
///
/// Calling this macro **is not mandatory**; you can setup if your own logger if /// Calling this macro **is not mandatory**; you can setup if your own logger if
/// you want. /// you want.
/// ///