PHP 클래스 Think\Log\Driver\Socket

파일 보기 프로젝트 열기: top-think/framework

공개 프로퍼티들

프로퍼티 타입 설명
$port

보호된 프로퍼티들

프로퍼티 타입 설명
$allowForceClientIds
$config SocketLog 服务的http的端口号
$css

공개 메소드들

메소드 설명
__construct ( array $config = [] ) 架构函数
save ( array $log = [] ) : boolean 调试输出接口

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

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

check() 보호된 메소드

protected check ( )

getClientArg() 보호된 메소드

protected getClientArg ( $name )

save() 공개 메소드

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

send() 보호된 메소드

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

sendToClient() 보호된 메소드

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

프로퍼티 상세

$allowForceClientIds 보호되어 있는 프로퍼티

protected $allowForceClientIds

$config 보호되어 있는 프로퍼티

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

$css 보호되어 있는 프로퍼티

protected $css

$port 공개적으로 프로퍼티

public $port