How i can change/save the logger that the context provides
The context of handler provides a
context.log
but i want to save/change the logger is used, because i want to save this, i am using the Crawly without Apify CLI
6 Replies
Someone will reply to you shortly. In the meantime, this might help:
-# This post was marked as solved by Jaogmar. View answer.
conscious-sapphire•3mo ago
Hey @Jaogmar
Example with Loguru, But you can also use the standard logger in the same way
flat-fuchsiaOP•3mo ago
thank you Bro, i forget to close this thread
@Jaogmar just advanced to level 1! Thanks for your contributions! 🎉
flat-fuchsiaOP•3mo ago
i used the same way that you initialize de crawler class with the logger
the problem that i had that i was beeing very dumb and i forget to add the correct handlers to the logger
and when a used the
context.log.info
nothing happenedconscious-sapphire•3mo ago
Glad you've solved it) 🙂