示例#1
0
文件: Debug.php 项目: Andyyang1981/pi
 /**
  * Displays a debug message during conditional debug
  *
  * @param mixed $data a variable or an object
  * @return void
  */
 function dc($data = '')
 {
     $output = Debug::conditional($data, 2);
     if (null !== $output) {
         Pi::service('log')->debug($output);
     }
 }