日志高亮 | notepad

高亮显示日志

日志文件无法清晰看到关键问题所在? 看到一堆日志头疼?高亮日志可以清晰展示出日志的 ERROR级等各种等级的问题, 一下浏览出日志关键所在

tailspin

项目地址: https://githubfast.com/bensadeh/tailspin

使用Rust包管理器cargo安装
安装 - Cargo 手册 中文版 (rustwiki.org)

cargo install tailspin

基本使用
在这里插入图片描述
高亮效果

tspin -f test.log

在这里插入图片描述

使用命令后 若提示'less' command not found. Please ensure it is installed and on your PATH.

找到你git所安装的路径, 我这里是F:\Program\Git\usr\bin, 添加到环境变量中。对我来说, 这是有效的。

notepad

在路径C:\Users\<username>\AppData\Roaming\Notepad++\userDefineLangs下添加配置文件Ansible.xml
在这里插入图片描述
文件内容如下

<NotepadPlus>
    <UserLang name="Ansible" ext="" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
            <Prefix Keywords1="yes" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00failed: 00fatal: 00FAILED! 00ERROR 00Traceback 00ArithmeticError 00AssertionError 00AttributeError 00BaseException 00BlockingIOError 00BrokenPipeError 00BufferError 00ChildProcessError 00ConnectionAbortedError 00ConnectionError 00ConnectionRefusedError 00ConnectionResetError 00EOFError 00EnvironmentError 00Exception 00FileExistsError 00FileNotFoundError 00FloatingPointError 00GeneratorExit 00IOError 00ImportError 00IndentationError 00IndexError 00InterruptedError 00IsADirectoryError 00KeyError 00KeyboardInterrupt 00LookupError 00MemoryError 00ModuleNotFoundError 00NameError 00NotADirectoryError 00NotImplemented 00NotImplementedError 00OSError 00OverflowError 00PermissionError 00ProcessLookupError 00RecursionError 00ReferenceError 00RuntimeError 00StopAsyncIteration 00StopIteration 00SyntaxError 00SystemError 00SystemExit 00TabError 00TimeoutError 00TypeError 00UnboundLocalError 00UnicodeDecodeError 00UnicodeEncodeError 00UnicodeError 00UnicodeTranslateError 00ValueError 00WindowsError 00ZeroDivisionError 01 02 03Warning 04&#x000A;</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1"></Keywords>
            <Keywords name="Numbers, suffix2"></Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1"></Keywords>
            <Keywords name="Operators2"></Keywords>
            <Keywords name="Folders in code1, open"></Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close"></Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">WARN</Keywords>
            <Keywords name="Keywords2">...ignoring skipped</Keywords>
            <Keywords name="Keywords3"></Keywords>
            <Keywords name="Keywords4"></Keywords>
            <Keywords name="Keywords5"></Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00INFO 01 02&#x000A; 03DEBUG 04 05&#x000A; 06WARN 07 08&#x000A; 09FAILED 10 11&#x000A; 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" fgColor="FF80FF" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" fgColor="FF0000" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" fgColor="0080FF" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" fgColor="00FFFF" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" fgColor="00C800" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" fgColor="FF8000" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" fgColor="808080" bgColor="FFFFFF" colorStyle="1" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

高亮效果, 感觉不是特别清晰, 时间没有高亮
在这里插入图片描述

  • 12
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
### 回答1: notepad 7.8.1 release是Notepad++文本编辑器的一个版本,而notepad是Windows操作系统自带的一个简单文本编辑器。 notepad 7.8.1 release是经过改进和更新的Notepad++版本。Notepad++是一款免费开源的文本编辑器,它拥有强大而丰富的功能,适用于各种编程语言的开发。通过notepad 7.8.1 release,用户可以体验到更新的界面设计、更效的性能和更多的功能选项。这个版本可能包括了一些错误修复、新功能添加和性能优化,以提供更好的用户体验。 而notepad是Windows操作系统中自带的一个轻量级文本编辑器。它功能简单,主要用于快速打开和编辑文本文件。虽然notepad的功能有限,但对于一些简单的文本编辑任务来说已经足够了。用户可以通过notepad编辑文本文件,包括创建、打开、编辑和保存文本内容。 总的来说,notepad 7.8.1 release是一个更强大、丰富功能的文本编辑器版本,而notepad是Windows操作系统自带的一个简单文本编辑器。用户可以根据自己的需求选择使用哪一个。 ### 回答2: "Notepad 7.8.1 Release"是一个版本号,指的是"Notepad"这个文本编辑器软件的第7.8.1版本发布。Notepad是一款简单方便的文本编辑器,作为Windows操作系统的一部分,它具有基本的文本处理功能。 "Notepad 7.8.1 Release"版本相比以往版本可能有一些优化和改进。这些改进可能包括增加新功能、修复已知问题、提稳定性和性能等。可能还会改善用户界面,使其更加直观和易于使用。 "Notepad"的主要用途是编辑和查看纯文本文件,例如文本文档、配置文件、批处理脚本等。它提供了一些基本的文本编辑功能,如复制、剪切、粘贴、查找和替换等。用户还可以自定义字体、修改文本格式、调整缩放等。 "Notepad 7.8.1 Release"版本可能通过增加一些新的功能或改善现有功能来提升用户的编辑体验。这可以包括自动完成、拼写检查、语法、行号显示等。此外,可能还通过增强的插件系统来扩展软件的功能。 总之,"Notepad 7.8.1 Release"是指"Notepad"文本编辑器的一个发布版本,可能带来了一些改进和优化,提升了用户的编辑体验和功能扩展性。 ### 回答3: Notepad 7.8.1release | Notepad 是一个文本编辑器的软件。Notepad 是Windows操作系统中自带的文本编辑器,用户可以使用它来编辑和创建各种类型的文本文件。 Notepad 7.8.1release 是Notepad软件的一个版本,它是Notepad的最新发布版本。这个版本可能修复了之前版本中存在的一些bug,并且可能添加了一些新的功能和改进。 Notepad软件的主要功能包括:打开、编辑和保存文本文件、支持各种编码格式(如ASCII、UTF-8等)、查找和替换文本、自动换行、拼写检查、插入日期和时间等。 使用Notepad,用户可以创建和编辑各种类型的文本文件,如TXT、HTML、CSS、JavaScript、Python、Java等。用户可以使用Notepad编写和编辑程序代码、创建和编辑网页、编写简单的文档等等。 Notepad 7.8.1release 可能有一些新的功能和改进,如界面的优化、增加了一些快捷键、提了打开和保存文件的速度等等。但具体的改进和新功能需要查看官方发布的更新日志才能得知。 总之,Notepad是一个简单易用的文本编辑器软件,Notepad 7.8.1release是其最新发布的版本,用户可以使用它来处理各种文本文件的编辑和创建任务。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

梦中千秋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值