Expand description
Thread-safe log-level counter for crawl diagnostics.
The LogCounter keeps a running tally of log messages by level (debug,
info, warning, error). It uses atomic integers so it can be safely shared
across threads without a mutex.
After the crawl completes, call LogCounter::counts and assign the
result to CrawlStats::log_levels_counter
to include log-level breakdowns in the final statistics.
This is the Rust equivalent of the Python scrapling’s LogCounterHandler.
Structs§
- LogCounter
- Counts log events by level for post-crawl diagnostics.