phpe/clog
最新稳定版本:v1.0
Composer 安装命令:
composer require phpe/clog
包简介
Class for logging loading performance
关键字:
README 文档
README
About
A class for logging and debugging the loading time
PHP 5 >= 5.3.0
Introduction
Instantiate an object of CLog like $clog = new \phpe\log\CLog();
Then you write $clog->Timestamp(CLASS, METHOD, 'A description'); where you want to start the logging and continue to deploy several other $clog->Timestamp(CLASS, METHOD, 'Another description'); in different places.
When you have deployed your timestamps you can print out the result with $clog->TimestampAsTable();
Using anax-mvc
Make it apart of $Di like:
$di->setShared('clog', function() { $clog = new \phpe\log\CLog(); $clog->Timestamp(CLASS, METHOD, 'a comment'); return $clog; });
Then can you, depenending where in the code you want to reach CLog, reach the class whit either $app or $di; $app->clog->Timestamp(CLASS, METHOD, 'a comment'); or $this->di->clog->Timestamp(CLASS, METHOD, 'a comment');
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-16