Coder Social home page Coder Social logo

application-monitor's Introduction

Application Log Monitor 是一个开源,简单,易用的Log Monitor


想解决的问题

  1. **统一项目中的Log方式,解决低版本浏览器下console.info等的脚本错误问题
  2. **让开发人员,在低版本的浏览器,比如IE6,也能看见Log. 解决低版本浏览器调试之痛
  3. **让前端根据Log的级别来打Log,规范Log级别
  4. **在调试阶段,可以只显示某一类的Log,提高开发效率
  5. **当出现某类严重错误时,开发人员可以收集这类的Log,发送到后端做监控

目前设计的原则

jQuery PlugIn, 简单,易用

目前API

  • $.Logger
  • $.Logger.setLogLevel
  • $.Logger.setLogFilter

使用示例

  • var mylog=$.Logger("logger-monitor-tester");

  • $.Logger.setLogLevel(4); // logger-monitor-tester

  • $.Logger.setLogFilter(/^.monitor.$/,function(msg){

  • //do the action , like send request to the back-end or store the log in some place

  • });

  • mylog.log("+++log test start+++");

application-monitor's People

Contributors

majorye avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

application-monitor's Issues

add log max-size

add log max-size, so if the log size surpass max-size, delete the previous log.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.