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 Development 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

Every editor I've ever used displays it fine.

What distro are you using?

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

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

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 Stewart

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.

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