-
Notifications
You must be signed in to change notification settings - Fork 6
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
Anylogger instance in library never outputs to console in application #17
Comments
I thought anylogger would be a good choice for logging but it lead to the following blocker of a bug: Download/anylogger#17 I didn’t want to forget where I logged, though, so I’m leaving it all in but commented out.
@MasterKale |
@MasterKale Reproduced your issue. Also have a suspicion of what may be happening. |
I was able to fix it, though maybe not in the way you want to... The symlinked module works differently from the regular modules. I guess symlinked in modules in NPM are still not working correctly. I consider this issue closed because I don't think there is much that |
Thank you for looking into this, what an odd idiosyncrasy of I'll follow up in the PR. I hope you have a good weekend ✌️ |
Hey MasterKale, no problem, that's just how it works with Open Source, sometimes people don't have time. It's very unfortunate that NPM doesn;t support your setup the way it should. It would be really great if it did! I have tried many options but never got a satisfying setup with symlinking. But without it, it's very hard to develop a library as a real separate project from the application without having to publish after each change. The best way for now is to just include myLib as a folder in the actual application project I think and only factor it out into a separate project when the amount of changes it gets becomes smaller. You could maybe report this as an issue to the NPM team. I guess it should not be impossible to make |
I've implemented
anylogger
in a library I'm authoring in TypeScript. Unfortunately, the anylogger instance in my library is never updated by any adapters I try to use in an application (also TypeScript) that uses this library, so no logging in my library ever appears in the application's console output.To keep things simple I'm using
import 'anylogger-console'
in the application that's consuming my library, but I also have this issue when I try withulog
.I've created a repo reproducing the issue. The README.md file within contains basic reproduction steps:
https://github.com/MasterKale/anylogger-bug-repro-17
The text was updated successfully, but these errors were encountered: