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

Stacktrace output from log.error not clickable in WebStorm console #230

Open
dangnhdev opened this issue May 2, 2023 · 0 comments
Open

Comments

@dangnhdev
Copy link

dangnhdev commented May 2, 2023

I've tried TSLog for a while and pretty happy with it but I have noticed that when the error is logged using the log.error() method, the stack trace output in the WebStorm console is displayed, but I am unable to click on the file paths in the stack trace to navigate directly to the source code.

I have enabled sourceMap and inlineSourceMap in my tsconfig.json file, and the log output shows the correct line number in the source file. However, the file paths in the stack trace are still not clickable.
Tried use {{fullFilePath}} but not work:

const log = new Logger({
        prettyErrorStackTemplate: "  • {{fileName}}\t{{method}}\n{{fullFilePath}}",
});

Is there a specific configuration or a workaround that I can use to make it work?
Thank you for your help and for maintaining this great package!

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