bixev/firelog
最新稳定版本:1.0.1
Composer 安装命令:
composer require bixev/firelog
包简介
FirePHP and ChromePHP console logging
README 文档
README
This library helps you to deal with FirePHP and ChromePHP logging
This is like vardump, but into the console, so it does not break the flow.
Ajax compliant ;)
Installation
Composer
It's recommended that you use Composer to install InterventionSDK.
composer require bixev/firelog "~1.0"
This will install this library and all required dependencies.
so each of your php scripts need to require composer autoload file
<?php require 'vendor/autoload.php';
Browser extension
FirePHP
Requires Firebug
under Firefox : tools > modules > extensions > look for "FirePHP"
You need then to activate all firebug pannels
Manual : http://www.firephp.org/
ChromePHP
Install the extension : https://chrome.google.com/webstore/detail/chromephp/noaneddfkdjfnfdakjjmocngnfkfehhd
you need to activate the extension by clicking the button in chrome
Manual : http://craig.is/writing/chrome-logger
Usage
Simple
simply call the method
\Bixev\Firelog\Firelog::log($yourObject); \Bixev\Firelog\Firelog::log($yourObject, $label); \Bixev\Firelog\Firelog::log($yourObject, $label, \Bixev\Firelog\LoggerLevel::LEVEL_WARN);
Go into the browser console, you will see your logs
You get your object.
Notes
ChromePHP uses cookies, Firephp uses multiple headers.
FirePHP supports bigger objects. In Chrome you will see too big headersin the console if you log too big objects. In that case Firefox should give you correct log.
统计信息
- 总下载量: 15.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-06