• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sngxx
V2EX  ›  程序员

大家看日志用什么 highlight 工具辅助吗

  •  
  •   sngxx · Dec 12, 2024 · 2467 views
    This topic created in 551 days ago, the information mentioned may be changed or developed.

    平时用浏览器和命令行终端看日志,大家有没有顺手的插件推荐。 比如 chrome 上的 Easy Highlight 插件,这个插件只能加 8 个关键词,多了收费。

    8 replies    2024-12-13 12:18:41 +08:00
    vopsoft
        1
    vopsoft  
       Dec 12, 2024   ❤️ 1
    1 chorme 用这个 https://highlightthis.net/Help.html 还支持正则匹配高亮 支持导入/导出

    2 命令行 用 xshell 的工具--“突出显示集” ,这个会卡 不用时记的关,备份时搜索 hls 文件就行
    附上日志语法文件
    https://f000.backblazeb2.com/file/kaixin99/%E6%97%A5%E5%BF%97%E9%AB%98%E4%BA%AE.hls

    放到这个目录 ........Xshell\HighlightSet Files\日志.hls

    3 文本在 windows 下用 EmEditor -工具-选择配置-也能自定义高亮 支持根据扩展名 正则 ,这个相当随时自定义一套语法 在 linux 下没找到类似的
    lzhd24
        2
    lzhd24  
       Dec 12, 2024 via iPhone
    Tailspin
    Edsie
        3
    Edsie  
       Dec 12, 2024
    终端的话
    vim 原生: match,match2,match3
    我用 kitty: marks
    evan1
        4
    evan1  
    PRO
       Dec 12, 2024   ❤️ 1
    啥也不用,直接 less /关键字查。
    dullwit
        5
    dullwit  
       Dec 12, 2024
    wyx119911
        6
    wyx119911  
       Dec 12, 2024
    iTerm2 可以自己编辑正则高亮
    chingyat
        7
    chingyat  
       Dec 12, 2024
    Emacs 自己撸了个看 log 的 font-lock 。
    loseblue
        8
    loseblue  
       Dec 13, 2024
    如果用软件的话我推荐 klogg ,在挑了十几个看 log 软件之后的选中。
    可以正则高亮,可以手动多颜色高亮,可以搜索过滤。

    https://github.com/variar/klogg
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2841 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 15:30 · PVG 23:30 · LAX 08:30 · JFK 11:30
    ♥ Do have faith in what you're doing.