定制 phpe/clog 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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');

Scrutinizer Code Quality Code Coverage Build Status

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-16