8000 GitHub - Rareloop/lumberjack-debugbar
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rareloop/lumberjack-debugbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumberjack Debug Bar

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0