mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 21:52:34 +08:00
封装trace方法用于远程调试输出
This commit is contained in:
12
base.php
12
base.php
@@ -305,3 +305,15 @@ function S($name, $value = '', $options = null)
|
||||
return $cache->set($name, $value, $expire);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加Trace记录到SocketLog
|
||||
* @param mixed $log log信息 支持字符串和数组
|
||||
* @param string $level 日志级别
|
||||
* @param string $css 样式
|
||||
* @return void|array
|
||||
*/
|
||||
function trace($log,$level='log',$css='')
|
||||
{
|
||||
return think\Slog::record($level,$log,$css);
|
||||
}
|
||||
Reference in New Issue
Block a user