2017 © Pedro Peláez
 

library php-log

PHP Log Utilities

image

hugsbrugs/php-log

PHP Log Utilities

  • Tuesday, March 14, 2017
  • by hugsbrugs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-log

This librairy provides utilities function for simple file logging support., (*1)

Build Status Coverage Status, (*2)

Install

Install package with composer, (*3)

composer require hugsbrugs/php-log

In your PHP code, load library, (*4)

require_once __DIR__ . '/../vendor/autoload.php';
use Hug\Log\Log as Log;

Usage

Writes the values of certain variables (time, remote_addr, request_uri) along with a message in a log file., (*5)

Log::write_log($message, $logfile = null);

If $logfile is not defined then you have to define a constant DEFAULT_LOG with path to default log file, (*6)

Transforms a PHP integer error code into a human readable PHP constant, (*7)

$log_message = Log::decode_log_level($error_code);

Unit Tests

phpunit --bootstrap vendor/autoload.php tests

Author

Hugo Maugey visit my website ;), (*8)

The Versions

14/03 2017

dev-master

9999999-dev

PHP Log Utilities

  Sources   Download

The Development Requires