views:

108

answers:

5

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?

+4  A: 

In *nix, less is my first choice for log file viewing. It has, among other things:

  • Regular expression search (/)
  • "Follow" (F), which shows new lines as they come in
  • Scrolling via up/down/PgUp/PgDn/etc.
  • A filter that shows only lines matching a regular expression (&)
Wayne Conrad
Even on Windows, one can install http://www.cygwin.com/ and feel as if he has a decent OS. :P
Mladen Jablanović
lol... I have stuff on windows 7.... like aimp2
Zombies
A: 

splunk is very cool. you can use it.

allenwei
A: 

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.)

Ethan
+1  A: 

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.

Scott
Oh yeah, forgot about that one.
Zombies
A: 

You Can check OtrosLogViewer. You can implement LogParser interface for your own log format.

Otros Systems