ThinkPHP5


think\log\driver\Socket
library\think\log\driver\Socket.php at line 18

Class Socket

Socket

public class Socket

github: https://github.com/luofei614/SocketLog

Author:
luofei614

Field Summary
mixed

$port

Constructor Summary
void

__construct(array config)

架构函数

Method Summary
bool

save(array log)

调试输出接口

protected void

sendToClient($tabid tabid, $client_id client_id, $logs logs, $force_client_id force_client_id)

发送给指定客户端

protected void

check()

protected void

getClientArg(mixed name)

protected static bool

send(string host, string message, string address)

Field Detail

library\think\log\driver\Socket.php at line 20

port

public mixed $port = 1116

Constructor Detail

library\think\log\driver\Socket.php at line 33

__construct

public void __construct(array config)

架构函数

Parameters:
config - 缓存参数

Method Detail

library\think\log\driver\Socket.php at line 46

save

public bool save(array log)

调试输出接口

Parameters:
log - 日志信息

library\think\log\driver\Socket.php at line 142

sendToClient

protected void sendToClient($tabid tabid, $client_id client_id, $logs logs, $force_client_id force_client_id)

发送给指定客户端

Author:
Zjmainstay

library\think\log\driver\Socket.php at line 155

check

protected void check()

library\think\log\driver\Socket.php at line 181

getClientArg

protected void getClientArg(mixed name)

library\think\log\driver\Socket.php at line 213

send

protected static bool send(string host, string message, string address)

Parameters:
host - - $host of socket server
message - - 发送的消息
address - - 地址

ThinkPHP5