RoR Logs viewer?

Ok another newbie question.
I did a tail -f on the test.log file for the sample depot application
in Agile Web D. book and was very impressed with the formatted
log entries. Apparently, a lot of effort has been put into this. My
question is: what is the most effective way of viewing this log? tail
command? I ask this question because a bare bones text editor like
gedit or vi will not display the formatted log, instead show funny
graphics characters. Also, is there some documentation on how to read
the test log file?
Thanks.
Bharat

On 11/28/06, Bharat [email protected] wrote:

Thanks.
Bharat

Every editor I’ve ever used displays it fine.

What distro are you using?

Chris M.
Web D.
Open Source & Web Standards Advocate

are you on windows?

when tailing on rails logs, I use ‘tail’ on a cygwin terminal

get it from http://www.cygwin.com/

basically cygwin makes your Windows box as useful as a linux box
(almost)

the cygwin tail will format the logs and colour them correctly thats
what
whose funny characters are, mark up for the colours

On 11/29/06, Chris M. [email protected] wrote:

gedit or vi will not display the formatted log, instead show funny

Chris M.
Web D.
Open Source & Web Standards Advocate
http://www.chriscodes.com/


www.blogsaic.com
view, visit, vote

On Nov 28, 2006, at 10:23 PM, Chris M. wrote:

Every editor I’ve ever used displays it fine.

The log contains various terminal manipulation characters. I can
read the contents if I “tail -f”, but “less” doesn’t handle it.
(TERM=xterm-color)

-faisal

Thanks gentlemen for your responses. Chris, I am using Fedora Core 5
and I was talking about gedit which is the default editor in it.

Hello,

Every editor I’ve ever used displays it fine.

Vi may not work but Vim displays it fine with the excellent Rails
plugin:

http://www.vim.org/scripts/script.php?script_id=1567

The log contains various terminal manipulation characters. I can
read the contents if I “tail -f”, but “less” doesn’t handle it.
(TERM=xterm-color)

Try less -r.

Regards,
Andy S.

Dion H. wrote:

I use ‘tail’ on a cygwin terminal
get it from http://www.cygwin.com/

basically cygwin makes your Windows box as useful as a linux box
(almost)

This is great. THX for sharing.

Thanks Andy,
less -r works for me. I am familiar with vi and therefore the less
command but did not know -r flag.
Regards,
Bharat