feat(log): 新增框架日志查看器,integrate log viewer and improve log management

- Add log viewer functionality using wolf-leo/phplogviewer package
- Implement log record feature in admin system
- Update log table to include log record button
- Configure default and common log modules in logviewer config

Signed-off-by: wolfcode <37436228+wolf-leo@users.noreply.github.com>
This commit is contained in:
wolfcode
2024-10-09 09:51:25 +08:00
parent 4b8e163454
commit a1d4aa97d5
5 changed files with 36 additions and 2 deletions

View File

@@ -95,4 +95,12 @@ class Log extends AdminController
return Excel::exportData($list, $header, $fileName, 'xlsx');
}
/**
* @NodeAnnotation(title="框架日志")
*/
public function record(): string
{
return (new \Wolfcode\PhpLogviewer\thinkphp\LogViewer())->fetch();
}
}