Guest User

Untitled

a guest
Jun 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const exLog = console.log
  2. console.log = (msg) => {
  3. const file = new Error().stack.split('at ')[2].trim()
  4. Array.prototype.unshift.call(arguments, file)
  5. exLog.apply(this, arguments)
  6. }
Add Comment
Please, Sign In to add comment