Macro teloxide::enable_logging[][src]

macro_rules! enable_logging {
    () => { ... };
}

Enables logging through pretty-env-logger.

A logger will only print errors from teloxide and all logs from your program.

Example

teloxide::enable_logging!();

Note

Calling this macro is not mandatory; you can setup if your own logger if you want.