tslog
tslog copied to clipboard
Question- ESModule support in the browser
I have a somewhat unique logging need for a project and this appears perfect.
The project has a collection of isomorphic TypeScript libraries (node and browser) and I'm using ES Modules only throughout (with ES Module Shims in the browser).
Do you see any issues with using this logger in the browser as an ES Module? I'm trying to avoid bundling (webpack, browserfy, etc).
Lastly, ideally I would get log line regardless of log level (not only with log.trace).
Thanks so much. I've written something in-house which meets all of the aforementioned requirements, however I'd prefer to standardize on something like tslog. Thank you in advance
tslog
is indeed a TypeScript and ESM-first logger. In fact, I only added CJS in one of the later releases. However, I don't use ESM on the client, but I believe it should work.
I would really appreciate if you would try it out and hear your feedback.
Okay, I will try it. Thank you
@slynchDev Did you manage to try it out?
Hello, I haven't had time yet but if I get to it I'll let you know 👍