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...)
2 Replies
MEE6
MEE6•3y ago
@new_in_town just advanced to level 1! Thanks for your contributions! 🎉
genetic-orange
genetic-orange•3y ago
import { log } from 'crawlee';

Did you find this page helpful?