skylerkatz/rackspace-log-parser
Composer 安装命令:
composer require skylerkatz/rackspace-log-parser
包简介
Parse Rackspace Cloud Files Access Logs in an object oriented way
README 文档
README
Rackspace Cloud Files provides access logs for all items uploaded to your account. Since log files can be confusing to work with, this package will parse a log file and generate an array of easy to use objects, each representing a row in the log.
Installation
You can install the package via composer:
composer require skylerkatz/rackspace-log-parser
Usage
$parser = new SkylerKatz\RackspaceLogParser('path-to-the-log.log'); $items $parser->parse(); var_dump($items[0]); object(SkylerKatz\RackspaceLogParser\LogItem)#1 (10) { ["raw"]=> string(444) "173.203.44.122 - - [15/07/2014:20:52:25 +0000] "GET /5142b6e5e57f760d7ff4-c591437fc634f2a98934b7738b8b8571.r93.cf1.rackcdn.com/image1.png HTTP/1.1" 304 277 "http://www.rackspace.com/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0. 50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; Microsoft Outlook 14.0. 7109; ms-office; MSOffice 14)"" ["clientIp"]=> string(14) "173.203.44.122" ["accessDate"]=> object(Carbon\Carbon)#22 (3) { ["date"]=> string(26) "2014-07-15 20:52:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } ["method"]=> string(3) "GET" ["request"]=> string(85) "/5142b6e5e57f760d7ff4-c591437fc634f2a98934b7738b8b8571.r93.cf1.rackcdn.com/image1.png" ["httpVersion"]=> string(8) "HTTP/1.1" ["returnCode"]=> int(304) ["bytesSent"]=> int(277) ["referrer"]=> string(25) "http://www.rackspace.com/" ["userAgent"]=> string(259) "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0. 50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; Microsoft Outlook 14.0. 7109; ms-office; MSOffice 14)"" }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email skylerkatz@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
skylerkatz/rackspace-log-parser 适用场景与选型建议
skylerkatz/rackspace-log-parser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 11 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「skylerkatz」 「rackspace-log-parser」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 skylerkatz/rackspace-log-parser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 skylerkatz/rackspace-log-parser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-03