Creating logging for React.js.
Note that nodejs and broswer is different one is file path and other is browser path.
Notice that broswer js is tricky depend on the build which is webpack bundle.js if there change in format it goes back to bundle.js instead of src path.
let e = new Error(args);
let stack = String(e.stack)
// fail, go to bundle.js url