app-log:JSON 记录器

时间:2021-07-06 06:28:41
【文件属性】:
文件名称:app-log:JSON 记录器
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-06 06:28:41
JavaScript 应用程序日志 应用助手项目的一部分。 将所有内容记录在 json 中,以便进行灵活的分析和处理。 安装 npm install app-log 用法 var log = require ( 'app-log' ) ; function createUser ( ) { var user = { email : 'john@example.com' , name : 'john' } ; log . info ( 'New user created with email' , user . email , user ) ; } createUser ( ) ; // Concat all scalar values (strings, numbers) with spaces, // and aggregate all objects to `data` property // {
【文件预览】:
app-log-master
----index.js(3KB)
----test.js(1KB)
----package.json(721B)
----.gitignore(13B)
----README.md(4KB)

网友评论