How to extend log messages?
Are there any plans to extend Crawlee logger?
Ref: https://crawlee.dev/api/core/class/Logger
I found this to set the
skipTime
option
but it doesn't seem to work. I got Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'log')
My code:
Logger | API | Crawlee
This is an abstract class that should
be extended by custom logger classes.
this._log() method must be implemented by them.
1 Reply
fascinating-indigo•3y ago
The reason is because
utils
is no longer exported from the apify
package, therefore it is undefined
. That's why you get the error of Cannot read 'log' of undefined
. log
doesn't exist on undefined
.
Instead, you should import log
from crawlee
like this: