phyrexia / log
This package is abandoned and no longer maintained.
The author suggests using the monolog/monolog package instead.
PHP PSR-3 compatible loggers
2.2.1
2019-09-01 22:07 UTC
Requires
- php: >=5.3
- psr/log: ^1.0
Provides
README
PHP PSR-3 compatible loggers
Requirements
- PHP >= 5.3
- Composer psr/log ^1.0
Installation
Install directly via Composer:
$ composer require phyrexia/log
Basic Usage
<?php require 'vendor/autoload.php'; use Phyrexia\Log\FileLogger; //Instantiate a FileLogger logger $logger = new FileLogger('/tmp/some_file.log'); //Log an error $logger->error('An error occured! :('); //Log an info $logger->info('It works! :)'); ...