for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace micro\log;
require_once ROOT.DS.'micro/log/chromePhp.php';
class Logger{
public static $test;
public static function init(){
Logger::$test=$GLOBALS["config"]["debug"];
\ChromePhp::getInstance()->addSetting(\ChromePhp::BACKTRACE_LEVEL, 2);
}
public static function log($id,$message){
if(Logger::$test)
\ChromePhp::log($id.":".$message);
public static function warn($id,$message){
\ChromePhp::warn($id.":".$message);
public static function error($id,$message){
\ChromePhp::error($id.":".$message);