Apify

Apify and Crawlee Official Forum

b
F
A
J
A

accessing 'log' outside of 'requestHandler' ?

In the PlaywrightCrawler.requestHandler() I can access 'log' because it is an argument of requestHandler()
How can I access log (or something similar?) in other places?

Example:
I want to log something before the crawler.run();

(well, console.log works but I would like to control the loglevel in one place...)
A
A
2 comments
just advanced to level 1! Thanks for your contributions! πŸŽ‰
import { log } from 'crawlee';
Add a reply
Sign up and join the conversation on Discord
Join