NoneBot 网页终端实时log显示/输出插件
Project description
nonebot-plugin-logstream
✨ NoneBot 网页终端实时log显示/输出插件 ✨
✨ 基于SSE(Server-Sent Events) ✨
使用方式
在Nonebot项目的pyproject.toml文件plugins字样添加nonebot_plugin_logstream
或者pull项目到Nonebot插件目录
查看实时log网页:
- 运行Nonebot实例
- 浏览器访问 http://127.0.0.1:你的Nonebot端口/logs
查看log输出流(SSE):
- 运行Nonebot实例
- 浏览器访问 http://127.0.0.1:你的Nonebot端口/logs/sse
贡献与支持
如果觉得此项目还有点用处请点个 Star
谢谢喵
有意见或者建议欢迎提交 Issues 和 Pull requests。
提示
KiKi-XC的第一个Nonebot插件,有代码不规范的地方,欢迎PR和指正!
SSE发送Log的频率为2秒刷新一次
SSE(Server-Sent Events)
可能不兼容某些远古浏览器,例如 IE
输出流已经将ANSI颜色字符转换为HTML标签了,因此可以直接显示在网页上,可参考 View/log.html
许可证
本项目使用 MIT 作为开源许可证。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for nonebot_plugin_logstream-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43a0768cafd13d5ab942b9ac604069d707caac78fcfc1f65e7808b1c93e8246 |
|
MD5 | 88e217422973d8208e59f73d4ffce126 |
|
BLAKE2b-256 | bcc995df3592681288e25c7bcb191ff697d34200ebb460676a29aa03da96bbd4 |