loghog:NodeJS的简单记录器

时间:2021-05-05 07:36:26
【文件属性】:
文件名称:loghog:NodeJS的简单记录器
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-05 07:36:26
JavaScript loghog.js 一个非常简单的软件包,可以满足您的API请求日志记录需求! 安装 npm install loghog 例子 const express = require ( 'express' ) ; const app = express ( ) ; app . use ( loghog ( { path : './log.txt' } ) ) ; //You can also use the following code to output directly to the console. app . use ( loghog ( ) ) ; 输出 2021-03-14, 21:31:07 -> GET: /getCustomers 2021-03-14, 21:31:49 -> POST: /addCustomer?name=John&password=Doe 2
【文件预览】:
loghog-master
----.gitignore(23B)
----package.json(366B)
----README.md(638B)
----loghog.js(842B)

网友评论