kutuluk / loglevel-plugin-remote

A loglevel plugin for sending browser logs to a server
MIT License
102 stars 36 forks source link

Stacktrace file name as chunk.js #35

Closed Anush-DP closed 3 years ago

Anush-DP commented 3 years ago

I am using loglevel in my React app along with loglevel-plugin-remote and when I do log.error() I get filename and line number as chunk.js in the stack trace in my log server, but in the browser console, I get the proper filename with proper line number. Example:

2020-11-11T13:22:09.140Z: ERROR: Custom Error
    at http://localhost:3000/static/js/main.chunk.js:9130:55

Can you please tell me how I can know/get the actual file name and line number ? Thanks.

Anush-DP commented 3 years ago

Got a solution for this here: https://github.com/pimterry/loglevel/issues/154#issuecomment-725439459