Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbitron committed Apr 26, 2013
1 parent 5956677 commit e57596f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions chrome_logger_helper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* Helper function for Chrome Logger
* @link http://craig.is/writing/chrome-logger
*
* @author Gilbert Pellegrom
* @link http://dev7studios.com
* @version 1.0
*/
function chrome_log($object, $type = 'log')
{
require_once APPPATH .'third_party/ChromePhp.php';
if($type == 'warn') ChromePhp::warn($object);
else if($type == 'error') ChromePhp::error($object);
else if($type == 'group') ChromePhp::group($object);
else ChromePhp::log($object);
}

0 comments on commit e57596f

Please sign in to comment.