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

Add a non-formatted log option #45

Open
Keyrxng opened this issue Oct 26, 2024 · 0 comments
Open

Add a non-formatted log option #45

Keyrxng opened this issue Oct 26, 2024 · 0 comments

Comments

@Keyrxng
Copy link
Contributor

Keyrxng commented Oct 26, 2024

In the cloudflare live worker logs the errors etc are not easy to read for obvious reasons.

We should add a new optional param to the log methods or a single one as part of initializing the class that disables/removes any kind of formatting and prints well in any env.

As you can imagine longer errors are very hard to immediately interpret.

image


We could probably make use of process.env which I'm sure works in cf workers as that usually contains hints as to what env we are in. If we can detect it's a terminal supporting env we should pretty print like normal but workers (and whatever other envs that happens in) we should try to improve it's readability.

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

No branches or pull requests

3 participants