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

Replace pino logger with an alternative #46

Open
bludnic opened this issue Jul 27, 2024 · 0 comments
Open

Replace pino logger with an alternative #46

bludnic opened this issue Jul 27, 2024 · 0 comments

Comments

@bludnic
Copy link
Owner

bludnic commented Jul 27, 2024

There are some issues with the pino logger:

  • It creates artifacts like worker.js, making it hard to bundle.
  • Due to its asynchronous nature and use of Workers for logging, the order of logs is not always correct.
  • It has issues when used in isomorphic apps. While it works fine in Node.js, there are problems in the browser.

Candidates

Comparison

Feature loglevel debug
Synchronous Logging Yes Yes
No Artifacts (e.g., worker.js) Yes Yes
Isomorphic Yes Yes
ESM Support Yes (compatible) Yes (compatible)
TypeScript Support Yes Yes (via @types/debug)
Logging Levels Yes (trace, debug, info, warn, error) No
Namespace-based Logging No Yes
Dynamic Enable/Disable No Yes (via env variables or localStorage)
Dependencies None 1
File Logging With additional setup With additional setup
Use Case General-purpose logging Debugging specific parts of an app
@bludnic bludnic modified the milestone: v1.0.0-beta.0 Jul 28, 2024
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

1 participant