- Notifications
You must be signed in to change notification settings - Fork4
Browser/javascript-like logger/console class for PHP
License
bkdotcom/PHPDebugConsole
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Browser/javascript like console class for PHP
Log, Debug, Inspect
Website/Usage/Examples:http://www.bradkent.com/php/debug
- PHP port of thejavascript web console api
- multiple simultaneous output options
- ChromeLogger
- FirePHP (no FirePHP dependency!)
- HTML
- Plain text / file
- <script>
- WebSocket (WAMP)
- "plugin"
- "Collectors" / wrappers for
- Guzzle
- Doctrine
- Mysqli
- PDO
- PhpCurlClass
- SimpleCache
- SoapClient
- SwiftMailer
- more
- PSR-3 (Logger) Implementation
- PSR-15 (Middleware) Implementation
- custom error handler
- errors (even fatal) are captured / logged / displayed
- optionally send error notices via email (throttled as to not to send out a flood of emails)
- password protected
- send debug log via email
This library supports PHP 5.4 - 8.4
It is installable and autoloadable viaComposer asbdk/debug.
{"require": {"bdk/debug":"^3.4", }}
installation without Composer
As of v3.3 this is no longer officially supported due to now requiring one or more dependencies.
Seehttp://www.bradkent.com/php/debug
PHPDebugConsole includes aPSR-3 implementation (which can be used as amonolog PSR handler). If you're using a application or library that uses these standards, drop PHPDebugConsole right in.
(this library includes neither psr/log or monolog/monolog. Include separately if needed.)
PSR-3:
// instantiate PHPDebugLogger / get instance$debug = \bdk\Debug::getInstance();$psr3logger =$debug->logger;$psr3logger->emergency('fallen and can\'t get up');
monolog:
$monolog =new \Monolog\Logger('myApplication');$monolog->pushHandler(new \bdk\Debug\Collector\MonologHandler($debug));$monolog->critical('all your base are belong to them');
- log
- info
- warn
- error
- assert
- clear
- count
- countReset
- group
- groupCollapsed
- groupEnd
- profile
- profileEnd
- table
- time
- timeEnd
- timeLog
- trace
- …more
About
Browser/javascript-like logger/console class for PHP
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.