Files
monpas/application/libraries/Chromelogger.php
T
2021-07-10 16:25:16 +02:00

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);
}
}