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

Console location of logging is log4javascript.js:148, instead of the location where the .debug or .info, etc. is at in code #160

Open
hughknaus opened this issue Nov 13, 2024 · 1 comment

Comments

@hughknaus
Copy link

hughknaus commented Nov 13, 2024

When using console.debug or console.log, etc. in components the console emits the proper location of the logged event. When replaced with ionic-logging-service all logged locations in the console appear as log4javascript.js:148. Consequently, the link will not take you to location of the logging in your file.

For example, I have a home-page.service.ts, when the constructor contains:
image

When running, in the console it looks like:
image

When changing to use the ionic-loggin-service, like:
image

In the console it looks like:
image

Is there a way to have it output the location of log statement like if I were using console.log? Mind you, once using ionic-logging-service all logging locations are reported as log4javascript.js:148 in the console.

@hughknaus
Copy link
Author

Apparently this only happens on Mac OS. I opened the same project on Windows and all references to file locations are okay. Anyway to solve this for Mac?

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

No branches or pull requests

1 participant