2017 © Pedro Peláez
 

library consolelog

Log variables to browser console via Chrome Logger protocol.

image

geekality/consolelog

Log variables to browser console via Chrome Logger protocol.

  • Thursday, August 3, 2017
  • by Svish
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Overview

Latest version Downloads License, (*1)

Allows easy server-side logging to browsers supporting the Chrome Logger protocol. Either native or via plugins., (*2)

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


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

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

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... 🤔 🙂, (*6)

The Versions

03/08 2017

dev-master

9999999-dev https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7.1

 

log logging console browser debugging chrome logger

03/08 2017

v1.3

1.3.0.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

27/07 2017

v1.2

1.2.0.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

27/07 2017

v1.1.1

1.1.1.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

27/07 2017

v1.1

1.1.0.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

08/03 2017

v1.0.4

1.0.4.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

08/03 2017

v1.0.3

1.0.3.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

08/03 2017

v1.0.2

1.0.2.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging console browser debugging chrome logger

08/03 2017

v1.0.1

1.0.1.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

MIT

The Requires

  • php >=7

 

log logging

08/03 2017

v1.0

1.0.0.0 https://github.com/Svish/chromephp

Log variables to browser console via Chrome Logger protocol.

  Sources   Download

The Requires

  • php >=7

 

log logging