示例#1
0
 /**
  * Analog of Handler::getInstance()->debug(...) method
  * @param mixed $data
  * @param string|null $tags Tags separated by dot, e.g. "low.db.billing"
  * @param int|array $ignoreTraceCalls Ignore tracing classes by name prefix `array('PhpConsole')` or fixed number of calls to ignore
  */
 public static function debug($data, $tags = null, $ignoreTraceCalls = 0)
 {
     if (self::$debug) {
         if (self::$isActive) {
             self::$connector->getDebugDispatcher()->dispatchDebug($data, $tags, is_numeric($ignoreTraceCalls) ? $ignoreTraceCalls + 1 : $ignoreTraceCalls);
         }
     }
 }
示例#2
0
 /**
  * Handle debug data
  * @param mixed $data
  * @param string|null $tags Tags separated by dot, e.g. "low.db.billing"
  * @param int|array $ignoreTraceCalls Ignore tracing classes by name prefix `array('PhpConsole')` or fixed number of calls to ignore
  */
 public function debug($data, $tags = null, $ignoreTraceCalls = 0)
 {
     if ($this->connector->isActiveClient()) {
         $this->connector->getDebugDispatcher()->dispatchDebug($data, $tags, is_numeric($ignoreTraceCalls) ? $ignoreTraceCalls + 1 : $ignoreTraceCalls);
     }
 }
 /**
  * Analog of Handler::getInstance()->debug(...) method
  * @param mixed $data
  * @param string|null $tags Tags separated by dot, e.g. "low.db.billing"
  * @param int $skipTraceCalls Number of proxy methods between original "debug method call" and this method call
  */
 public static function debug($data, $tags = null, $skipTraceCalls = 0)
 {
     if (self::$isActive) {
         self::$connector->getDebugDispatcher()->dispatchDebug($data, $tags, $skipTraceCalls + 1);
     }
 }
示例#4
0
 /**
  * Handle debug data
  * @param mixed $data
  * @param string|null $tags Tags separated by dot, e.g. "low.db.billing"
  * @param int $skipTraceCalls Number of proxy methods between original "debug method call" and this method call
  */
 public function debug($data, $tags = null, $skipTraceCalls = 0)
 {
     if ($this->isStarted) {
         $this->connector->getDebugDispatcher()->dispatchDebug($data, $tags, $skipTraceCalls + 1);
     }
 }