PHP 클래스 think\org\Slog

파일 보기 프로젝트 열기: luofei614/socketlog 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$log_types SocketLog 服务的http的端口号
$port
$start_memory
$start_time

보호된 프로퍼티들

프로퍼티 타입 설명
$_allowForceClientIds
$_instance 配置强制推送且被授权的client_id
$config
$css
$logs

공개 메소드들

메소드 설명
__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 = '' )

보호된 메소드들

메소드 설명
check ( )
getClientArg ( $name )
sendToClient ( $tabid, $client_id, $logs, $force_client_id ) 发送给指定客户端

비공개 메소드들

메소드 설명
sqlexplain ( $arr, &$sql, &$css )
sqlwhere ( &$sql, &$css )

메소드 상세

__callStatic() 공개 정적인 메소드

public static __callStatic ( $method, $args )

__destruct() 공개 메소드

public __destruct ( )

big() 공개 정적인 메소드

public static big ( $log )

check() 보호된 정적인 메소드

protected static check ( )

config() 공개 정적인 메소드

设置配置
public static config ( $config )

error_handler() 공개 정적인 메소드

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

fatalError() 공개 정적인 메소드

public static fatalError ( )

getClientArg() 보호된 정적인 메소드

protected static getClientArg ( $name )

getConfig() 공개 정적인 메소드

获得配置
public static getConfig ( $name )

getInstance() 공개 정적인 메소드

public static getInstance ( )

mysqlilog() 공개 정적인 메소드

public static mysqlilog ( $sql, $db )

mysqllog() 공개 정적인 메소드

public static mysqllog ( $sql, $db )

pdolog() 공개 정적인 메소드

public static pdolog ( $sql, $pdo )

record() 공개 메소드

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

registerErrorHandler() 공개 정적인 메소드

接管报错
public static registerErrorHandler ( )

send() 공개 정적인 메소드

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

sendLog() 공개 정적인 메소드

public static sendLog ( )

sendToClient() 보호된 정적인 메소드

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

sql() 공개 정적인 메소드

public static sql ( $sql, $link )

trace() 공개 정적인 메소드

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

프로퍼티 상세

$_allowForceClientIds 보호되어 있는 정적으로 프로퍼티

protected static $_allowForceClientIds

$_instance 보호되어 있는 정적으로 프로퍼티

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

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

protected static $config

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

protected static $css

$log_types 공개적으로 정적으로 프로퍼티

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

$logs 보호되어 있는 정적으로 프로퍼티

protected static $logs

$port 공개적으로 정적으로 프로퍼티

public static $port

$start_memory 공개적으로 정적으로 프로퍼티

public static $start_memory

$start_time 공개적으로 정적으로 프로퍼티

public static $start_time