initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
|
||||
include MYROOTPATH."application/third_party/ChromePhp.php";
|
||||
|
||||
class Chromelogger {
|
||||
|
||||
private $enabled;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function setEnabled($status)
|
||||
{
|
||||
$this->enabled = $status;
|
||||
}
|
||||
|
||||
public function log()
|
||||
{
|
||||
if( $this->enabled === FALSE ) return;
|
||||
|
||||
$args = func_get_args();
|
||||
|
||||
ChromePhp::log($args);
|
||||
}
|
||||
|
||||
public function warn()
|
||||
{
|
||||
if( $this->enabled === FALSE ) return;
|
||||
|
||||
$args = func_get_args();
|
||||
|
||||
|
||||
ChromePhp::warn($args);
|
||||
}
|
||||
|
||||
public function error()
|
||||
{
|
||||
if( $this->enabled === FALSE ) return;
|
||||
|
||||
$args = func_get_args();
|
||||
|
||||
ChromePhp::error($args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user