PHP Class think\org\Slog

Datei anzeigen Open project: luofei614/socketlog Class Usage Examples

Public Properties

Property Type Description
$log_types SocketLog 服务的http的端口号
$port
$start_memory
$start_time

Protected Properties

Property Type Description
$_allowForceClientIds
$_instance 配置强制推送且被授权的client_id
$config
$css
$logs

Public Methods

Method Description
__callStatic ( $method, $args )
__destruct ( )
big ( $log )
config ( $config ) 设置配置
error_handler ( $errno, $errstr, $errfile, $errline )
fatalError ( )
getConfig ( $name ) 获得配置
getInstance ( )
mysqlilog ( $sql, $db )
mysqllog ( $sql, $db )
pdolog ( $sql, $pdo )
record ( $type, $msg = '', $css = '' ) 记录日志
registerErrorHandler ( ) 接管报错
send ( null $host, string $message = '', string $address = '/' ) : boolean
sendLog ( )
sql ( $sql, $link )
trace ( $msg, $trace_level = 1, $css = '' )

Protected Methods

Method Description
check ( )
getClientArg ( $name )
sendToClient ( $tabid, $client_id, $logs, $force_client_id ) 发送给指定客户端

Private Methods

Method Description
sqlexplain ( $arr, &$sql, &$css )
sqlwhere ( &$sql, &$css )

Method Details

__callStatic() public static method

public static __callStatic ( $method, $args )

__destruct() public method

public __destruct ( )

big() public static method

public static big ( $log )

check() protected static method

protected static check ( )

config() public static method

设置配置
public static config ( $config )

error_handler() public static method

public static error_handler ( $errno, $errstr, $errfile, $errline )

fatalError() public static method

public static fatalError ( )

getClientArg() protected static method

protected static getClientArg ( $name )

getConfig() public static method

获得配置
public static getConfig ( $name )

getInstance() public static method

public static getInstance ( )

mysqlilog() public static method

public static mysqlilog ( $sql, $db )

mysqllog() public static method

public static mysqllog ( $sql, $db )

pdolog() public static method

public static pdolog ( $sql, $pdo )

record() public method

记录日志
public record ( $type, $msg = '', $css = '' )

registerErrorHandler() public static method

接管报错
public static registerErrorHandler ( )

send() public static method

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

sendLog() public static method

public static sendLog ( )

sendToClient() protected static method

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

sql() public static method

public static sql ( $sql, $link )

trace() public static method

public static trace ( $msg, $trace_level = 1, $css = '' )

Property Details

$_allowForceClientIds protected_oe static_oe property

protected static $_allowForceClientIds

$_instance protected_oe static_oe property

配置强制推送且被授权的client_id
protected static $_instance

$config protected_oe static_oe property

protected static $config

$css protected_oe static_oe property

protected static $css

$log_types public_oe static_oe property

SocketLog 服务的http的端口号
public static $log_types

$logs protected_oe static_oe property

protected static $logs

$port public_oe static_oe property

public static $port

$start_memory public_oe static_oe property

public static $start_memory

$start_time public_oe static_oe property

public static $start_time