xsist10 / psr-firephp-logger
This package is abandoned and no longer maintained.
No replacement package was suggested.
Logging psr-3 compliant messages to FirePHP
dev-master
2013-09-18 07:10 UTC
Requires
- php: >=5.3.0
- firephp/firephp-core: dev-master
- psr/log: 1.*
Requires (Dev)
- phpunit/phpunit: 3.8.*@dev
This package is auto-updated.
Last update: 2022-04-18 13:48:59 UTC
README
The PSR-3 Compliant Logger Interface for FirePHP.
You will need to install FireBug and FirePHP on your browser first.
Usage
You can use the logger directly like this:
use Xsist10\PsrFirePhpLogger\Logger;
$logger = new Logger();
$logger->emergency('emergency');
$logger->alert('alert');
$logger->critical('critical');
$logger->error('error');
$logger->warning('warning');
$logger->notice('notice');
$logger->info('info');
$logger->debug('debug');
Or pass the logger as a parameter to LoggerAwareInterface
classes like this:
use Xsist10\PsrFirePhpLogger\Logger;
$logger = new Logger()
class MyClass implements LoggerAwareInterface
{
// ...
}
$my_class = new MyClass();
$my_class->setLogger($logger);