Skip to content

[建议] 优化日志输出 #5

Description

@NoirHare

目前输出中采用了 \r 和部分虚拟终端序列来优化日志展示, 在交互模式下效果非常好

但如果将日志转发到其他日志管理软件进行分析或储存可能会有问题, 例如 journalctl 中会将其识别为 [blob data] (暂时可以以 -a 解决,但是会破坏 journalctl 的输出格式)

希望可以添加一个 flags 如 --plan-log 或检测在非交互模式下,支持输出纯文本的日志以方便储存和分析

可以使用类似各类repl的策略, 非交互下不显示颜色和命令提示符


当前 journalctl 中的显示
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions