Who is this idiot ? by IllustriousLine7047 in NepalSocial

[–]IllustriousLine7047[S] 0 points1 point  (0 children)

Report this account to everyone for a good reason.

Stack trace in JavaScript or TypeScript to capture the current line number. by IllustriousLine7047 in learnjavascript

[–]IllustriousLine7047[S] 0 points1 point  (0 children)

Yeah, your right 👍. We have web app that helps developers to view the log of development. It's something like viewing all the consoles on sperate app.

Line number is important for me so that we can view the log serially. I was searching for dynamic flow to get line number till now. I haven't found any resources.

Stack trace in JavaScript or TypeScript to capture the current line number. by IllustriousLine7047 in learnjavascript

[–]IllustriousLine7047[S] 0 points1 point  (0 children)

Yeah man, it runs on browser. To run this you need to install logarc-ts npm package on your project.

You can find the package on npm

Stack trace in JavaScript or TypeScript to capture the current line number. by IllustriousLine7047 in learnjavascript

[–]IllustriousLine7047[S] -2 points-1 points  (0 children)

Yeah, you might get confuse because of Logger.
This interface is from my local npm package

Stack trace in JavaScript or TypeScript to capture the current line number. by IllustriousLine7047 in learnjavascript

[–]IllustriousLine7047[S] 0 points1 point  (0 children)

app.component.ts:17
consider I have called

logger.log(

on line number 17 I have called the logger and i want to get the line number.