2017 © Pedro Peláez
 

library firelog

FirePHP and ChromePHP console logging

image

bixev/firelog

FirePHP and ChromePHP console logging

  • Sunday, March 6, 2016
  • by thomas.leviandier@gmail.com
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,744 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

This library helps you to deal with FirePHP and ChromePHP logging, (*1)

This is like vardump, but into the console, so it does not break the flow., (*2)

Ajax compliant ;), (*3)

Installation

Composer

It's recommended that you use Composer to install InterventionSDK., (*4)

composer require bixev/firelog "~1.0"

This will install this library and all required dependencies., (*5)

so each of your php scripts need to require composer autoload file, (*6)

<?php

require 'vendor/autoload.php';

Browser extension

FirePHP

Requires Firebug, (*7)

under Firefox : tools > modules > extensions > look for "FirePHP", (*8)

You need then to activate all firebug pannels, (*9)

Manual : http://www.firephp.org/, (*10)

ChromePHP

Install the extension : https://chrome.google.com/webstore/detail/chromephp/noaneddfkdjfnfdakjjmocngnfkfehhd, (*11)

you need to activate the extension by clicking the button in chrome, (*12)

Manual : http://craig.is/writing/chrome-logger, (*13)

Usage

Simple

simply call the method, (*14)

\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, (*15)

You get your object., (*16)

Notes

ChromePHP uses cookies, Firephp uses multiple headers., (*17)

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., (*18)

The Versions

06/03 2016

dev-master

9999999-dev

FirePHP and ChromePHP console logging

  Sources   Download

MIT

The Requires

 

06/03 2016

1.0.1

1.0.1.0

FirePHP and ChromePHP console logging

  Sources   Download

MIT

The Requires

 

06/03 2016

1.0.0

1.0.0.0

FirePHP and ChromePHP console logging

  Sources   Download

MIT

The Requires