sdev-log-viewer:拖尾日志文件的应用程序-源码

上传者: 42164534 | 上传时间: 2021-04-29 01:41:18 | 文件大小: 185KB | 文件类型: ZIP
SDev日志查看器 这是一个演示node.js / express应用程序,在指定的日志目录中包含日志。 前端是使用bootstrap和jquery编写的。 这本可以重构为更好的但这仅是与所演示的node.js进行交互的一种方式 它演示了以下内容: 关注点分离(应用程序,路线,模型,库) 测试驱动开发 诺言的使用 使用日志记录和错误处理 跑步 运行npm install和npm start 。 默认情况下,它在./log目录中尾随自己的日志,这并不是很令人印象深刻。 要拖尾另一个日志目录,请在启动服务器时指定它,例如 运行npm start -- /var/log 。 打开http://localhost:3000 。 测验 要运行测试,请运行npm test 。 监视文件的任何更改并自动进行测试。 运行npm test -- --watch 去做 使用Web套接字实时更新日

文件下载

资源详情

[{"title":"( 27 个子文件 185KB ) sdev-log-viewer:拖尾日志文件的应用程序-源码","children":[{"title":"sdev-log-viewer-master","children":[{"title":"logs","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"public","children":[{"title":"index.html <span style='color:#111;'> 986B </span>","children":null,"spread":false},{"title":"js","children":[{"title":"jquery.min.js <span style='color:#111;'> 93.74KB </span>","children":null,"spread":false},{"title":"app.js <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"bootstrap.min.js <span style='color:#111;'> 35.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"fonts","children":[{"title":"glyphicons-halflings-regular.ttf <span style='color:#111;'> 44.34KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular.woff2 <span style='color:#111;'> 17.61KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular.eot <span style='color:#111;'> 19.66KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular.svg <span style='color:#111;'> 106.19KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular.woff <span style='color:#111;'> 22.88KB </span>","children":null,"spread":false}],"spread":true},{"title":"css","children":[{"title":"bootstrap.min.css <span style='color:#111;'> 119.67KB </span>","children":null,"spread":false},{"title":"bootstrap-theme.min.css <span style='color:#111;'> 22.81KB </span>","children":null,"spread":false},{"title":"style.css <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"models","children":[{"title":"logs.js <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"lib","children":[{"title":"logger.js <span style='color:#111;'> 527B </span>","children":null,"spread":false}],"spread":true},{"title":"app.js <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 736B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"logs","children":[{"title":"notalogfile.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"access.log <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"app.log <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":true},{"title":"logs.spec.js <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"app.spec.js <span style='color:#111;'> 578B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"www <span style='color:#111;'> 169B </span>","children":null,"spread":false}],"spread":true},{"title":"routes","children":[{"title":"logs.js <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 541B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明