mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进trace方法支持调用栈
This commit is contained in:
6
base.php
6
base.php
@@ -316,5 +316,9 @@ function S($name, $value = '', $options = null)
|
|||||||
*/
|
*/
|
||||||
function trace($log, $level = 'log', $css = '')
|
function trace($log, $level = 'log', $css = '')
|
||||||
{
|
{
|
||||||
think\Slog::record($level, $log, $css);
|
if ('trace' == $level) {
|
||||||
|
\think\Slog::trace($log, 2, $css);
|
||||||
|
} else {
|
||||||
|
\think\Slog::record($level, $log, $css);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user