2017 © Pedro Peláez
 

library error-logging

Logging for PHP 5.3

image

gel/error-logging

Logging for PHP 5.3

  • Monday, May 9, 2016
  • by gel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

ErrorLogger

Install

Include gel/error-logging in your composer.json., (*1)

   {
    "require": {
        "gel/error-logging": "1.4"
    }
   }

Then do a validate/update., (*2)

 composer validate
 composer install --no-dev

Or use this command., (*3)

 composer require gel/error-logging

Usage

Create a new instance of the class, and choose where the file will be logged via the constructor., (*4)

 $myErrorLogger = new gel\logger\ErrorLogger('tmp/example/example.log.php');

Error messages will be removed by default. If you wanna turn them on simple call the function displayErrors., (*5)

$myErrorLogger->displayErrors(true)

You cant generate an error by using the function trigger_error., (*6)

trigger_error("Error is triggerd", E_USER_ERROR);

Error reporting is set to -1, but you can change it via changeErrorReporting function., (*7)

$myErrorLogger->changeErrorReporting("E_ERROR | E_WARNING");

Like always, try to create an instance of this class as early as possible., (*8)

The Versions

09/05 2016

dev-master

9999999-dev https://github.com/gusseleet/

Logging for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log logging

03/05 2016

v1.4

1.4.0.0 https://github.com/gusseleet/

Logging for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log logging

03/05 2016

v1.3

1.3.0.0 https://github.com/gusseleet/

Logging for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log logging

03/05 2016

v1.2

1.2.0.0 https://github.com/gusseleet/

Logging for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log logging

03/05 2016

v1.1

1.1.0.0 https://github.com/gusseleet/

Logging for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

log logging