Thruway\Logging\Logger::debug PHP Method

debug() public static method

public static debug ( null $object = null, $message, array $context = [] ) : null
$object null
$message
$context array
return null
    public static function debug($object = null, $message, $context = [])
    {
        if (static::$showDebug) {
            static::log($object, LogLevel::DEBUG, $message, $context);
        }
    }

Usage Example

コード例 #1
0
 /**
  * Handle process on close transport
  *
  * @param \React\Socket\Connection $conn
  */
 public function handleClose(Connection $conn)
 {
     Logger::debug($this, "Raw socket closed " . $conn->getRemoteAddress());
     $session = $this->sessions[$conn];
     $this->sessions->detach($conn);
     $this->router->getEventDispatcher()->dispatch('connection_close', new ConnectionCloseEvent($session));
 }
All Usage Examples Of Thruway\Logging\Logger::debug