ruby 有日志查看器吗?
是否有一个日志查看器可以显示来自任何记录器(无论是 l4r 还是基本记录器)的 Ruby 日志文件?某种打开日志文件并可以支持简单查询(例如仅 INFO)的 GUI 应用程序?
Is there a log viewer for displaying Ruby log files from any of its loggers (be it l4r or their basic logger)? Some kind of gui app that opens a log file and can support simple queries such as INFO only?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 *nix 中,
less
是我查看日志文件的首选。它具有以下功能:In *nix,
less
is my first choice for log file viewing. It has, among other things:Apache Chainsaw V2 可以加载常规文本日志文件,允许您搜索、着色和查看日志文件。使用表达式进行过滤(如 level == info)...只需使用 LogFilePatternReceiver 配置 Chainsaw,文件的日志内容将显示在 UI 的选项卡中(接收器支持拖尾)。
Chinsaw V2 是用 Java 编写的,但接收器将解析任何日志文件,Chainsaw 将显示事件。
Apache Chainsaw V2 can load regular text log files, allowing you to seach, colorize & filter using expressions (like level == info)...just configure Chainsaw using a LogFilePatternReceiver, and your file's log contents will show up in a tab in the UI (the receiver does support tailing).
Chinsaw V2 is written in Java, but the receiver will parse any log file and Chainsaw will display the events.
splunk 非常酷。你可以使用它。
splunk is very cool. you can use it.
我好像记得之前的一个问题,你用的是Windows,对吧?日志记录是一个通用的东西——不是 Ruby 特有的。据我所知,没有“适用于 Ruby”的日志查看器。但一般来说,有大量的日志查看器可以与 Ruby、Apache 或其他语言一起使用。
我不太熟悉 Windows 日志查看器场景,但是 谷歌搜索“windows tail utility” 出现了很多选项。其中一些是免费的。
(
tail
是用于监视日志文件的标准 Unix 命令。因此上述搜索适用于提供相同功能的 Windows 应用程序。)I seem to remember from an earlier question that you're on Windows, right? Logging is a universal thing -- not specific to Ruby. So as far as I know there's no log viewer "for Ruby." But there are tons of log viewers in general that can be used with Ruby, Apache, or whatever.
I'm not too familiar with the Windows log viewer scene, but Googling "windows tail utility" turned up many options. Some of them are free.
(
tail
is a standard Unix command for monitoring log files. So the above search is for Windows apps that provide the same functionality.)