cheukpang/psr-firephp-logger

Logging psr-3 compliant messages to FirePHP

v0.1 2017-11-12 18:00 UTC

This package is auto-updated.

Last update: 2024-10-28 16:01: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 Cheukpang\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 Cheukpang\PsrFirePhpLogger\Logger;

$logger = new Logger()

class MyClass implements LoggerAwareInterface
{
	// ...
}

$my_class = new MyClass();
$my_class->setLogger($logger);