Git Product home page Git Product logo

consolelog's Introduction

Overview

Latest version Downloads License

Allows easy server-side logging to browsers supporting the Chrome Logger protocol. Either native or via plugins.

Usage

use Geekality\ConsoleLog;

ConsoleLog::info('Hello console!');
ConsoleLog::log($_SERVER);
ConsoleLog::warn('something is off with', $object);
ConsoleLog::error('fail');

ConsoleLog::table([
	['R1 C1', 'R1 C2'],
	['R2 C1', 'R2 C2'],
	]);

ConsoleLog::group('Group header');
ConsoleLog::log('Bar');
ConsoleLog::groupEnd();

See more examples in sample/index.php.


Source

Based on ccampbell/chromephp, but more or less a complete rewrite because I found that one hard to extend and adjust in my own project. ๐Ÿ˜Ÿ

Ended up using newer PHP features and simplifying it a bit too, because that's how I roll.

Also called it ConsoleLog because I find it weird to use Chrome and Php in my code, when already writing PHP and I'm viewing the messages in the native Developer Console in FireFox... ๐Ÿค” ๐Ÿ™‚

consolelog's People

Contributors

svish avatar

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.