Giter VIP home page Giter VIP logo

firelog's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.