phpe/clog

Class for logging loading performance

Maintainers

Details

github.com/phphille/CLog

Source

Issues

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

v1.0 2015-02-16 14:41 UTC

This package is not auto-updated.

Last update: 2025-07-09 12:34:58 UTC


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