49 lines
610 B
PHP
49 lines
610 B
PHP
<?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);
|
|
}
|
|
|
|
} |