rareloop / lumberjack-debugbar
There is no license information available for the latest version (dev-master) of this package.
dev-master
2019-03-26 12:39 UTC
Requires
- maximebf/debugbar: 1.*
- rareloop/lumberjack-core: ^3.0.0 || ^4.0.0
Requires (Dev)
- brain/monkey: ^2.0.2
- codedungeon/phpunit-result-printer: ^0.4.4
- mockery/mockery: ^1.0.0
- phpunit/phpunit: ^6.0
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2026-02-27 03:47:47 UTC
README
Installation
composer require rareloop/lumberjack-debugbar
Once installed, register the Service Provider in config/app.php within your theme:
'providers' => [ ... Rareloop\Lumberjack\DebugBar\DebugBarServiceProvider::class, ... ],
Usage
The DebugBar will only register when the app.debug config setting is true, which means it should never show on production environments.
Messages
In order to write to the Messages log you can use the DebugBar facade:
use Rareloop\Lumberjack\DebugBar\Facades\DebugBar; DebugBar::info('message'); DebugBar::warning(123); DebugBar::error(['foo' => 'bar']);
Timeline
In order to write to the Timeline log you can use the DebugBar facade:
DebugBar::startMeasure('api-fetch', 'Time for API request'); DebugBar::stopMeasure('api-fetch'); DebugBar::addMeasure('now', microtime(true), microtime(true) + 10000); DebugBar::measure('My long operation', function() { // Do something… });
Logs
The logs tab will mirror anything that has been output to the Lumberjack logs.