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
Hello, I’m Allie!
Incoming events should have a log field(might be named something different, don’t remember off the top of my head).
julian
julian6mo ago
I just want to log stuff to debug it.
Hello, I’m Allie!
Here's a log item from the dash. console.logs should be under the log field:
Hello, I’m Allie!
This thing:
{
"message": [
"Hola, soy Dora!"
],
"level": "warn",
"timestamp": 1714933206763
}
{
"message": [
"Hola, soy Dora!"
],
"level": "warn",
"timestamp": 1714933206763
}
julian
julian6mo ago
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.
No description
Hello, I’m Allie!
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
Want results from more Discord servers?
Add your server