static function log($string) { if (!self::$_initialized) { if (strstr($_SERVER['HTTP_USER_AGENT'], ' Firefox/')) { self::$_driver = Driver\FirePHP::getInstance(true); } } if (!empty(self::$_driver)) { self::$_driver->log($string); } }
/** * @param $message * @param bool $showtime */ static function console($message, $showtime = false) { static $lasttime = APP_START; $thistime = microtime(true); $usedtime = $thistime - $lasttime; $lasttime = $thistime; $label = $showtime ? sprintf("%09.5fs", $usedtime) : NULL; if (strstr($_SERVER['HTTP_USER_AGENT'], ' Firefox/')) { if (is_null(self::$_driver)) { self::$_driver = Driver\FirePHP::getInstance(true); } self::$_driver->info($message, $label); } }