2017 © Pedro Peláez
 

library clog

Class for logging loading performance

image

phpe/clog

Class for logging loading performance

  • Sunday, March 1, 2015
  • by phphille
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CLog

About

A class for logging and debugging the loading time, (*1)

PHP 5 >= 5.3.0

Introduction

Instantiate an object of CLog like $clog = new \phpe\log\CLog();, (*2)

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., (*3)

When you have deployed your timestamps you can print out the result with $clog->TimestampAsTable();, (*4)

Using anax-mvc

Make it apart of $Di like:, (*5)

$di->setShared('clog', function() { $clog = new \phpe\log\CLog(); $clog->Timestamp(CLASS, METHOD, 'a comment'); return $clog; });, (*6)

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');, (*7)

Scrutinizer Code Quality Code Coverage Build Status, (*8)

The Versions

01/03 2015

dev-master

9999999-dev

Class for logging loading performance

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

debug logging

16/02 2015

v1.0

1.0.0.0

Class for logging loading performance

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

html forms education