mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Remove mentions of enable_logging!
from documentation/readme
This commit is contained in:
parent
29415a6d87
commit
22e5165f89
4 changed files with 6 additions and 15 deletions
15
README.md
15
README.md
|
@ -92,7 +92,7 @@ use teloxide::prelude2::*;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
teloxide::enable_logging!();
|
pretty_env_logger::init();
|
||||||
log::info!("Starting dices_bot...");
|
log::info!("Starting dices_bot...");
|
||||||
|
|
||||||
let bot = Bot::from_env().auto_send();
|
let bot = Bot::from_env().auto_send();
|
||||||
|
@ -164,7 +164,7 @@ async fn answer(
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
teloxide::enable_logging!();
|
pretty_env_logger::init();
|
||||||
log::info!("Starting simple_commands_bot...");
|
log::info!("Starting simple_commands_bot...");
|
||||||
|
|
||||||
let bot = Bot::from_env().auto_send();
|
let bot = Bot::from_env().auto_send();
|
||||||
|
@ -218,7 +218,7 @@ impl Default for State {
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
teloxide::enable_logging!();
|
pretty_env_logger::init();
|
||||||
log::info!("Starting dialogue_bot...");
|
log::info!("Starting dialogue_bot...");
|
||||||
|
|
||||||
let bot = Bot::from_env().auto_send();
|
let bot = Bot::from_env().auto_send();
|
||||||
|
@ -338,15 +338,6 @@ Associated links:
|
||||||
- [Marvin's Marvellous Guide to All Things Webhook](https://core.telegram.org/bots/webhooks)
|
- [Marvin's Marvellous Guide to All Things Webhook](https://core.telegram.org/bots/webhooks)
|
||||||
- [Using self-signed certificates](https://core.telegram.org/bots/self-signed)
|
- [Using self-signed certificates](https://core.telegram.org/bots/self-signed)
|
||||||
|
|
||||||
**Q: Can I use different loggers?**
|
|
||||||
|
|
||||||
A: Yes. You can setup any logger, for example [fern]. teloxide has no specific requirements as it depends only on [log]. Remember that [`enable_logging!`] and [`enable_logging_with_filter!`] are just **optional** utilities.
|
|
||||||
|
|
||||||
[fern]: https://crates.io/crates/fern
|
|
||||||
[log]: https://crates.io/crates/log
|
|
||||||
[`enable_logging!`]: https://docs.rs/teloxide/latest/teloxide/macro.enable_logging.html
|
|
||||||
[`enable_logging_with_filter!`]: https://docs.rs/teloxide/latest/teloxide/macro.enable_logging_with_filter.html
|
|
||||||
|
|
||||||
## Community bots
|
## Community bots
|
||||||
|
|
||||||
Feel free to propose your own bot to our collection!
|
Feel free to propose your own bot to our collection!
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
//!
|
//!
|
||||||
//! #[tokio::main]
|
//! #[tokio::main]
|
||||||
//! async fn main() {
|
//! async fn main() {
|
||||||
//! teloxide::enable_logging!();
|
//! pretty_env_logger::init();
|
||||||
//! log::info!("Starting dialogue_bot!");
|
//! log::info!("Starting dialogue_bot!");
|
||||||
//!
|
//!
|
||||||
//! let bot = Bot::from_env().auto_send();
|
//! let bot = Bot::from_env().auto_send();
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
//!
|
//!
|
||||||
//! # #[tokio::main]
|
//! # #[tokio::main]
|
||||||
//! # async fn main() {
|
//! # async fn main() {
|
||||||
//! teloxide::enable_logging!();
|
//! pretty_env_logger::init();
|
||||||
//! log::info!("Starting shared_state_bot...");
|
//! log::info!("Starting shared_state_bot...");
|
||||||
//!
|
//!
|
||||||
//! let bot = Bot::from_env().auto_send();
|
//! let bot = Bot::from_env().auto_send();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
//!
|
//!
|
||||||
//! # #[tokio::main]
|
//! # #[tokio::main]
|
||||||
//! # async fn main() {
|
//! # async fn main() {
|
||||||
//! teloxide::enable_logging!();
|
//! pretty_env_logger::init();
|
||||||
//! log::info!("Starting dices_bot...");
|
//! log::info!("Starting dices_bot...");
|
||||||
//!
|
//!
|
||||||
//! let bot = Bot::from_env().auto_send();
|
//! let bot = Bot::from_env().auto_send();
|
||||||
|
|
Loading…
Reference in a new issue