code: function getSourceInfo() {
    var exec = getStack()[3];
  
    var pos = exec.getFileName().lastIndexOf('\\');
    if(pos < 0) exec.getFileName().lastIndexOf('/');
  
    return {
      methodName: exec.getFunctionName() || 'anonymous',
      file: exec.getFileName().substring(pos + 1),
      lineNumber: exec.getLineNumber()
    };
  }
docs: Gets the source information from the line being log