# jquery-log

> a logger system for jquery project

Latest version **0.1.2** (published 2016-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install jquery-log
pnpm add jquery-log
yarn add jquery-log
bun add jquery-log
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-07-25 |
| First published | 2016-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | slashhuang |
| Keywords | log, jquery |

## Links

- npm: https://www.npmjs.com/package/jquery-log
- Repository: https://github.com/slashhuang/jquery-log
- Homepage: https://github.com/slashhuang/jquery-log.git
- Issues: https://github.com/slashhuang/jquery-log/issues
- npm.io page: https://npm.io/package/jquery-log

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ^3.1.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2016-07-25
- 0.1.1 — 2016-07-25

## README

# jquery-log

> a log system for jquery project

## features[特点]
1. 打点代码和业务逻辑代码分离  separate logic and logger 
2. 使用简单     easy to use

## usage[使用方式]
```javascript

    # 引入模块
    import logger from 'jquery-log';
    
    # 引入打点文件
    import map from './logMap.js';
    
    //启用日志文件 ==>  use log map to map node's `data-log-key`
    $.logger.use(map);
    
    //设置日志处理模块 ==>  set the executor for events
    $.logger.executor=(log)=>{
        $('.show-result').append('<dd>打点日志为'+JSON.stringify(log)+'</dd>')
    };
    
    //实际调用  code is developed like old jquery stuff,but with a logger middleware
    $('.test').logger().on('click','li',function(){
        //do your logic,
        //jquery-log will find the triggerd dom node and trigger executor
    })
  
```

## Command[命令]

```
    # 安装依赖
    npm install
     
	#karma测试	
	npm run test	
	
	#上线打包	
	npm run build
		
	#demo测试	
	npm run demo	
```

---
_Source: https://npm.io/package/jquery-log · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
