2017 © Pedro Peláez
 

library plop-catcher

Drop-in error catcher and general logger

image

danieljharvey/plop-catcher

Drop-in error catcher and general logger

  • Tuesday, August 8, 2017
  • by danieljharvey
  • Repository
  • 0 Watchers
  • 0 Stars
  • 295 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

plop-catcher

Make errors and logging and etc much nicer., (*1)

Better error catching and logging. Usage:, (*2)

Plop($outputMode, $callbackFunction);, (*3)

$outputMode can be 'HTML', 'JSON' or 'ARRAY' $callbackFunction will receive html, json or a PHP array, and is called if a fatal error uncaught exception stops execution allowing graceful error screens or debug output., (*4)

The HTML output will be initially invisible - press Shift-Enter to show or hide output., (*5)

$plop = new \DanielJHarvey\PlopCatcher\Plop('HTML',function($html) {
    outputHTML($html);
});
$plop->enable();

// code that will be executed

// blah blah blah blah blah blah

// end of code

// output debugging info in chosen format
outputHTML($plop->output());

function outputHTML(html) {
    echo $html;
}

Other things, (*6)

$plop->logComment($message);

The Versions

08/08 2017

dev-master

9999999-dev

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

08/08 2017

1.7.1

1.7.1.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

21/07 2017

1.7

1.7.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

04/07 2017

1.6

1.6.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

04/07 2017

1.5

1.5.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

04/07 2017

1.4

1.4.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

23/06 2017

1.3

1.3.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

11/06 2017

1.2

1.2.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

11/06 2017

v1.1

1.1.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey

11/06 2017

v1.0

1.0.0.0

Drop-in error catcher and general logger

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Harvey