PHP Class think\org\Slog

Afficher le fichier Open project: luofei614/socketlog Class Usage Examples

Méthodes publiques

Свойство Type Description
$log_types SocketLog 服务的http的端口号
$port
$start_memory
$start_time

Protected Properties

Свойство Type Description
$_allowForceClientIds
$_instance 配置强制推送且被授权的client_id
$config
$css
$logs

Méthodes publiques

Méthode 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 = '' )

Méthodes protégées

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

Private Methods

Méthode Description
sqlexplain ( $arr, &$sql, &$css )
sqlwhere ( &$sql, &$css )

Method Details

__callStatic() public static méthode

public static __callStatic ( $method, $args )

__destruct() public méthode

public __destruct ( )

big() public static méthode

public static big ( $log )

check() protected static méthode

protected static check ( )

config() public static méthode

设置配置
public static config ( $config )

error_handler() public static méthode

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

fatalError() public static méthode

public static fatalError ( )

getClientArg() protected static méthode

protected static getClientArg ( $name )

getConfig() public static méthode

获得配置
public static getConfig ( $name )

getInstance() public static méthode

public static getInstance ( )

mysqlilog() public static méthode

public static mysqlilog ( $sql, $db )

mysqllog() public static méthode

public static mysqllog ( $sql, $db )

pdolog() public static méthode

public static pdolog ( $sql, $pdo )

record() public méthode

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

registerErrorHandler() public static méthode

接管报错
public static registerErrorHandler ( )

send() public static méthode

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

sendLog() public static méthode

public static sendLog ( )

sendToClient() protected static méthode

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

sql() public static méthode

public static sql ( $sql, $link )

trace() public static méthode

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