Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logs setting in wrangler config #138

Open
gedw99 opened this issue Dec 2, 2024 · 2 comments
Open

logs setting in wrangler config #138

gedw99 opened this issue Dec 2, 2024 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Dec 2, 2024

the wrangler config in this repo needs updating so that you get real time logs.

Its really useful for debugging.

Update your wrangler.toml to ensure settings are consistent across deployments
# wrangler.toml (wrangler v3.88.0^)
[observability.logs]
enabled = true
@syumai
Copy link
Owner

syumai commented Dec 2, 2024

Workers Logs is a great feature, but it's not free. Therefore, it should be optional.
Adding it as a comment in template's wrangler.toml would be a good choice.

@gedw99
Copy link
Author

gedw99 commented Dec 3, 2024

Workers Logs is a great feature, but it's not free. Therefore, it should be optional. Adding it as a comment in template's wrangler.toml would be a good choice.

Well spotted ! I missed that .

I am thinking about logging to NATS Jetstream asynchronously. A simple HTTP call will work .
or you can get fancy and use nats.go as WASM.

if you have other ideas it would be worth discussing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants