Skip to content

FuelPHP to Chrome console logging package

Notifications You must be signed in to change notification settings

neaplus/fuel-chromelogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuel ChromeLogger package

This is a simple ChromePhp package to allow a better development and debugging for FuelPHP framework.

ChromeLogger ships your server side debug messages to client side via encoded http headers. So you can send log messages when normal page requests, ajax xhr requests even your service resources consumed.

More about ChromeLogger: http://craig.is/writing/chrome-logger

Installation

  1. Clone from Github. Put it on 'packages_dir/chromelogger' directory.

    git clone git://github.com/neaplus/fuel-chromelogger.git

  2. Also you need to install Chrome extension: https://chrome.google.com/webstore/detail/chrome-logger/noaneddfkdjfnfdakjjmocngnfkfehhd

Configuration

In app/config/config.php

'always_load' => array('packages' => array(
	'chromelogger',
	...

or in your code

Package::load('chromelogger');

Usage

If you want to log something, just do the following:

ChromeLogger::Log('Merhaba Dünya!');
// Or log with exclamation sign
ChromeLogger::Warn($_SERVER);

#####You can log string, array or object to chrome console.

Tested with Fuel 1.7.2 and Works with Fuel 1.6.1 and above

License

Fuel FirePHP package is released under the MIT License.

About

FuelPHP to Chrome console logging package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages