dev-master
9999999-dev
The Requires
The Development Requires
- phpunit/phpunit ^6.0
 - satooshi/php-coveralls ^1.0
 - mockery/mockery ^1.0.0
 - brain/monkey ^2.0.2
 - squizlabs/php_codesniffer ^3.2
 - codedungeon/phpunit-result-printer ^0.4.4
 
                         Wallogit.com
                    
                    2017 © Pedro PelĆ”ez
                    
                    
                    
                    
                
                
            
composer require rareloop/lumberjack-debugbar
Once installed, register the Service Provider in config/app.php within your theme:, (*1)
'providers' => [
    ...
    Rareloop\Lumberjack\DebugBar\DebugBarServiceProvider::class,
    ...
],
The DebugBar will only register when the app.debug config setting is true, which means it should never show on production environments., (*2)
In order to write to the Messages log you can use the DebugBar facade:, (*3)
use Rareloop\Lumberjack\DebugBar\Facades\DebugBar;
DebugBar::info('message');
DebugBar::warning(123);
DebugBar::error(['foo' => 'bar']);
In order to write to the Timeline log you can use the DebugBar facade:, (*4)
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ā¦
});
The logs tab will mirror anything that has been output to the Lumberjack logs., (*5)