How do I view console.log output?
What's the easiest way to do this? And why isn' it on by default? The live logging feature (e.g. wrangler tail) only logs http events.
6 Replies
Incoming events should have a log field(might be named something different, don’t remember off the top of my head).
I just want to log stuff to debug it.
Here's a log item from the dash.
console.log
s should be under the log
field:This thing:
thanks @HardlyWorkin' you and the docs both suggest console.log entries should be turning up but I just can't see them. The stream has stopped in this pic but you can seen the dropdown it seems to log events only even though "Real time logs" is chosen.
If you start it, it shows
Websocket connection established. Listening for events...
right?
Wait until a row shows up/trigger one yourself by hitting the Worker