bmmagento-jsnlog

用于记录JavaScript错误的Magento模块

此包的官方仓库似乎已不存在,因此该包已被冻结。

安装: 235

依赖者: 0

建议者: 0

安全: 0

类型:magento-module

1.0.0 2017-01-20 12:12 UTC

This package is auto-updated.

Last update: 2023-01-20 22:41:10 UTC


README

此模块将页面抛出的所有JavaScript错误写入/var/log/jsnlog.log,它使用JSNLogJSPHPLogMage::log进行记录。

安装

只需将bm/magento-jsnlog添加到您的composer.json中

"bm/magento-jsnlog": "*",

然后执行composer update或使用以下命令安装它

composer require bm/magento-jsnlog

使用方法

我们需要页面上的一些JavaScript错误来查看此模块是否工作;-) 检查日志文件是否偶尔被填充。您可以使用Magento LogViewer查看在Magento后端中的日志。

示例日志条目

2016-11-23T09:39:24+00:00 DEBUG (7): [JSPHPLog]: Info message sent from JSNLog
2016-11-23T09:45:00+00:00 DEBUG (7): [JSPHPLog]: {"stack":"TypeError: Cannot read property 'action' of null\n    at klass.submit (http://testserver.de/product.html:3025:41)\n    at HTMLButtonElement.onclick (http://testserver.de/product.html:834:82)","message":"Cannot read property 'action' of null","name":"TypeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught TypeError: Cannot read property 'action' of null","url":"http://testserver.de/product.html","line number":3025,"column":41}}
2016-11-23T09:39:33+00:00 DEBUG (7): [JSPHPLog]: log message

致谢

感谢JSNLog和JSPHPLog提供的免费开源软件。

许可证

JSNLog - 许可证:MIT

JSPHPLog - 许可证:GNU GPL

Magento JSNLog - 许可证:GNU GPL