Skip to content

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

@hughknaus

Description

@hughknaus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions