title: How to handle uncaughtErrorEvent & Exception to write a log in NativeScript?
body: <pre><code>var application = require("application");
  
  application.on(application.uncaughtErrorEvent, function (args) {
      if (args.android) {
          // For Android applications, args.android is an NativeScriptError.
          console.log("NativeScriptError: " + args.android);
      } else if (args.ios) {
          // For iOS applications, args.ios is NativeScriptError.
          console.log("NativeScriptError: " + args.ios);
      }
  });
  </code></pre>
  
  <p>I tried above example in {N}@2.0.1 but it does not work for me.</p>
  
  <p>Can you explain more detail?</p>