causal-agent / scraper

HTML parsing and querying with CSS selectors
https://docs.rs/scraper
ISC License
1.81k stars 100 forks source link

Disable logging? #122

Closed talhazengin closed 1 year ago

talhazengin commented 1 year ago

Is there a way to disable logging? I don't want any third-party library log messages in my application even if i set log level to Trace.

adamreichold commented 1 year ago

Depending on which logger implementation you use, you can usually define log levels on a per-module basis, for example env_logger supports a <module>=<level> syntax. Using this technique, you can either limit enabling trace logging to the module you are currently investigating or alternatively suppress the logs from dependencies you are not interested in.

talhazengin commented 1 year ago

Understood, thank you.