christianessl/js_logger
Composer 安装命令:
composer require christianessl/js_logger
包简介
JSLogger for TYPO3. Log errors and exceptions users are encountering in the frontend to the TYPO3 backend.
关键字:
README 文档
README
JSLogger for TYPO3. Log errors and exceptions users are encountering in the frontend to the TYPO3 backend.
What does it do?
This extension simply logs any javascript errors encountered in your frontend via ajax to the TYPO3 backend. It does this by using the PSR\Log\LoggerInterface, so error logs are automatically sent to the Logger that is configured in your TYPO3 instance. (like FileWriter or SysLogWriter)
Logged info:
- Error message
- Stack trace (file name, function, line number, column number, ...)
- Url
- User Agent
This extension uses stacktrace.js for creating readable stacktraces and parsing source maps. This means, that if you use minified js in production and have source maps configured, your logged error stacktrace will automatically show the correct line and column numbers from the unminified file, briefly worded: readable error output.
You can find out more about source maps and how to use them in your javascript here: How_to u se_a_source_map
Requirements
Currently supports 9.5 LTS
1. Installation
Installation with composer
composer require christianessl/js_logger.
Installation with TER
Open the TYPO3 Extension Manager, search for js_logger and install the extension.
2. Configuration
Go to the Template module and include the Static TypoScript Template JS Logger.
3. Usage
Any error encountered in the frontend js should now be automatically be logged to the backend via ajax. Alternatively you can now use console.devlog() in JavaScript to log messages.
christianessl/js_logger 适用场景与选型建议
christianessl/js_logger 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 02 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extension」 「typo3」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 christianessl/js_logger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 christianessl/js_logger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 christianessl/js_logger 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Set Links with a specific language parameter
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
Adds more BBCode
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-02-27