PHP Class Think\Log\Driver\Socket

Mostrar archivo Open project: top-think/framework

Public Properties

Property Type Description
$port

Protected Properties

Property Type Description
$allowForceClientIds
$config SocketLog 服务的http的端口号
$css

Public Methods

Method Description
__construct ( array $config = [] ) 架构函数
save ( array $log = [] ) : boolean 调试输出接口

Protected Methods

Method Description
check ( )
getClientArg ( $name )
send ( string $host, string $message = '', string $address = '/' ) : boolean
sendToClient ( $tabid, $client_id, $logs, $force_client_id ) 发送给指定客户端

Method Details

__construct() public method

架构函数
public __construct ( array $config = [] )
$config array 缓存参数

check() protected method

protected check ( )

getClientArg() protected method

protected getClientArg ( $name )

save() public method

调试输出接口
public save ( array $log = [] ) : boolean
$log array 日志信息
return boolean

send() protected method

protected send ( string $host, string $message = '', string $address = '/' ) : boolean
$host string - $host of socket server
$message string - 发送的消息
$address string - 地址
return boolean

sendToClient() protected method

发送给指定客户端
Author: Zjmainstay
protected sendToClient ( $tabid, $client_id, $logs, $force_client_id )
$tabid
$client_id
$logs
$force_client_id

Property Details

$allowForceClientIds protected_oe property

protected $allowForceClientIds

$config protected_oe property

SocketLog 服务的http的端口号
protected $config

$css protected_oe property

protected $css

$port public_oe property

public $port