library log
Easy log system to log information by STDOUT and logfile
corephp/log
Easy log system to log information by STDOUT and logfile
- Wednesday, February 21, 2018
- by danteay
- Repository
- 1 Watchers
- 0 Stars
- 12 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 71 % Grown
corephp-log
An easy log system for php webapps, (*1)
Basic use
use CorePHP\Log\Logger;
use CorePHP\Log\Handlers\FileHandler;
use CorePHP\Log\Formatters\WebFormatter;
use CorePHP\Log\Handlers\StdoutHandler;
$logger = new Logger('TEST');
$formatter = new WebFormatter();
$handler = new FileHandler(__DIR__ . '/logger.log');
$handler1 = new StdoutHandler(true);
$handler->setFormatt($formatter);
$handler1->setFormatt($formatter);
$logger->addHandler($handler);
$logger->addHandler($handler1);
$logger->error('Mensaje random');
dev-master
9999999-dev
Easy log system to log information by STDOUT and logfile
Sources
Download
MIT
The Requires
The Development Requires
0.2.1
0.2.1.0
Easy log system to log information by STDOUT and logfile
Sources
Download
MIT
The Requires
The Development Requires
0.2.0
0.2.0.0
Easy log system to log information by STDOUT and logfile
Sources
Download
MIT
The Requires
The Development Requires
0.1.0
0.1.0.0
Easy log system to log information by STDOUT and logfile
Sources
Download
MIT
The Requires
The Development Requires