dev-master
9999999-devPHP Log Utilities
The Development Requires
- phpunit/phpunit ^6.0
- mikey179/vfsstream ~1
- satooshi/php-coveralls dev-master
by Hugo Maugey
PHP Log Utilities
This librairy provides utilities function for simple file logging support., (*1)
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;
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);
phpunit --bootstrap vendor/autoload.php tests
Hugo Maugey visit my website ;), (*8)
PHP Log Utilities