Example #1
0
File: base.php Project: dkoin/think
/**
 * 添加Trace记录到SocketLog
 * @param mixed $log log信息 支持字符串和数组
 * @param string $level 日志级别
 * @param string $css 样式
 * @return void|array
 */
function trace($log, $level = 'log', $css = '')
{
    if ('trace' == $level) {
        \think\Slog::trace($log, 2, $css);
    } else {
        \think\Slog::record($level, $log, $css);
    }
}