示例#1
0
 /**
  * Enables displaying or logging errors and exceptions.
  * @param  mixed         production, development mode, autodetection or IP address(es) whitelist.
  * @param  string        error log directory; enables logging in production mode, FALSE means that logging is disabled
  * @param  string        administrator email; enables email sending in production mode
  * @return void
  */
 public static function enable($mode = NULL, $logDirectory = NULL, $email = NULL)
 {
     parent::enable($mode, $logDirectory, $email);
     self::$blueScreen = self::getBlueScreen();
     self::$bar = self::getBar();
     self::$logger = self::getLogger();
     self::$fireLogger = self::getFireLogger();
     self::$consoleColors =& Tracy\Dumper::$terminalColors;
 }
示例#2
0
 /**
  * Enables displaying or logging errors and exceptions.
  * @param  mixed         production, development mode, autodetection or IP address(es) whitelist.
  * @param  string        error log directory; enables logging in production mode, FALSE means that logging is disabled
  * @param  string        administrator email; enables email sending in production mode
  * @return void
  */
 public static function enable($mode = NULL, $logDirectory = NULL, $email = NULL)
 {
     trigger_error(__CLASS__ . ' is deprecated, use Tracy\\Debugger.', E_USER_DEPRECATED);
     parent::enable($mode, $logDirectory, $email);
     self::$blueScreen = self::getBlueScreen();
     self::$bar = self::getBar();
     self::$logger = self::getLogger();
     self::$fireLogger = self::getFireLogger();
     self::$consoleColors =& Tracy\Dumper::$terminalColors;
 }