【文件属性】:
文件名称:humanlog:供人类阅读的日志
文件大小:901KB
文件格式:ZIP
更新时间:2021-05-10 23:25:52
Go
人本
从stdin读取日志并将其打印回stdout ,但更漂亮。
使用它
或:
安装了Go
$ go get -u github.com/aybabtme/humanlog/...
在Linux上
wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.5.0/humanlog_0.5.0_linux_amd64.tar.gz | tar xvz
在OS X上
brew tap aybabtme/homebrew-tap
brew install humanlog
例子
如果您以JSON或发出日志,则当humanlog遇到这些日志时,您会喜欢上漂亮的日志。 无法识别的行保持不变。
$ humanlog < /var/log/logfile.log
贡献
如何帮助:
支持更多的日志格式:通过提交human.H