Is there a decent log viewer for colorized log files? less -r for me doesn''t work well, as it sometimes clears the screen. I''d like: * Either a console type less viewer which just removes the colors * Or, even better, a console one which handles the colors without clearing the screen * Or, best of all, a GUI viewer - maybe even with color I use both Windows and Linux. Any recommendations? -- Posted via http://www.ruby-forum.com/.
List Recv wrote:> Is there a decent log viewer for colorized log files? > > less -r for me doesn''t work well, as it sometimes clears the screen. > > I''d like: > * Either a console type less viewer which just removes the colors > * Or, even better, a console one which handles the colors without > clearing the screen > * Or, best of all, a GUI viewer - maybe even with color > > I use both Windows and Linux. Any recommendations?I know this isn''t what you''re looking for but it works. Just use ''cat'' in a GUI terminal window and scroll back if the log file isn''t very long or ''tail -n x'' if it is (on linux of course). --J -- Posted via http://www.ruby-forum.com/.
jonathan wrote:> List Recv wrote: >> Is there a decent log viewer for colorized log files? >> >> less -r for me doesn''t work well, as it sometimes clears the screen. >> >> I''d like: >> * Either a console type less viewer which just removes the colors >> * Or, even better, a console one which handles the colors without >> clearing the screen >> * Or, best of all, a GUI viewer - maybe even with color >> >> I use both Windows and Linux. Any recommendations? > > I know this isn''t what you''re looking for but it works. Just use ''cat'' > in a GUI terminal window and scroll back if the log file isn''t very long > or ''tail -n x'' if it is (on linux of course). > > --JCorrect, but they don''t handle color (rails uses ANSI escape codes for it). I know color can be shut off, but I find it quite useful. -- Posted via http://www.ruby-forum.com/.
tail -f gives me colorized log tail with follow in linux. List Recv wrote:> jonathan wrote: >> List Recv wrote: >>> Is there a decent log viewer for colorized log files? >>> >>> less -r for me doesn''t work well, as it sometimes clears the screen. >>> >>> I''d like: >>> * Either a console type less viewer which just removes the colors >>> * Or, even better, a console one which handles the colors without >>> clearing the screen >>> * Or, best of all, a GUI viewer - maybe even with color >>> >>> I use both Windows and Linux. Any recommendations? >> >> I know this isn''t what you''re looking for but it works. Just use ''cat'' >> in a GUI terminal window and scroll back if the log file isn''t very long >> or ''tail -n x'' if it is (on linux of course). >> >> --J > > Correct, but they don''t handle color (rails uses ANSI escape codes for > it). I know color can be shut off, but I find it quite useful.-- Posted via http://www.ruby-forum.com/.
Chris DiMartino wrote:> tail -f gives me colorized log tail with follow in linux. > >Right, but if you read the original post: I am looking for a way of going through log *files*, not watching logs as they stream by. Something like less, which lets me page back and forth, and search easily. More for operations and admin than development ("What happened at 3:00PM that our orders went down?!") -- Posted via http://www.ruby-forum.com/.
On 18/12/05, List Recv <listrecv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is there a decent log viewer for colorized log files? ># lv -c log/development.log seems to do the job ;) -- Bragi Ragnarson _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Bragi Ragnarson wrote:> On 18/12/05, List Recv <listrecv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Is there a decent log viewer for colorized log files? >> > > # lv -c log/development.log > > seems to do the job ;)Sounds great! It''s on neither my RedHat ES 4, or my Windows XP, and Googling for any two letters turns up a lot of noise. Mind if I ask you to post a link? -- $ which lv /usr/bin/which: no lv in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/lstrecv/bin:/usr/local/sbin:/sbin:/usr/sbin) -- Posted via http://www.ruby-forum.com/.
On Sunday 18 December 2005 08:52, List Recv wrote:> Is there a decent log viewer for colorized log files? > > less -r for me doesn''t work well, as it sometimes clears the screen. > > I''d like: > * Either a console type less viewer which just removes the colors > * Or, even better, a console one which handles the colors without > clearing the screen > * Or, best of all, a GUI viewer - maybe even with color > > I use both Windows and Linux. Any recommendations?Did you try "less -R" ? According to the man, should "keep track of the screen apearance". Francois
On 18/12/05, List Recv <listrecv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > # lv -c log/development.log > Sounds great! > It''s on neither my RedHat ES 4, or my Windows XP, and Googling for any > two letters turns up a lot of noise. Mind if I ask you to post a link? > > -- > $ which lv > /usr/bin/which: no lv in > (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/lstrecv/bin:/usr/local/sbin:/sbin:/usr/sbin)It was installed by default on my Fedora Core 4 and according to http://rpm.pbone.net/ rpms are available for all open Redhat-based distributions. So you should be able to install it using up2date or whatever RHES4 provides. And you can always use Fedora Core 3 rpms as fallback. You can also find it here if you would like to compile it from source (it compiles and runs on MS platforms too): http://www.ff.iij4u.or.jp/~nrt/lv/ -- Bragi Ragnarson