Skip to content

southwhale/errortrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

errortrack

前端报错跟踪器

不依赖第三方库.
使用UMD定义errortrack, 可作为AMD的模块使用, 也可直接使用.

###How to use?

  1. 采用AMD定义模块使用范例:

     define(function(require){
       ...
       require('errorTrack').init({
         // 配置错误发送的地址
         url : '/api/tools/femonitor/error?content=',
         /**
          * 定义需要捕获的额外信息
          * @return {Object}
          */
         captureExtendedInfo: function(){...} 
       });
       ...
     });
    
  2. __未__采用AMD定义模块使用范例:

     window.errorTrack.init({
       // 配置错误发送的地址
       url : '/api/tools/femonitor/error?content=',
       /**
        * 定义需要捕获的额外信息
        * @return {Object}
        */
       captureExtendedInfo: function(){...} 
     });
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published