bludnic / opentrader

🤖 Powerful open-source crypto trading bot. Give it a ⭐ to support the project!
Apache License 2.0
218 stars 24 forks source link

Replace `pino` logger with an alternative #46

Open bludnic opened 3 months ago

bludnic commented 3 months ago

There are some issues with the pino logger:

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