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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/28/06, Bharat <bruparel-x6Fv9fcoW1ZBDgjK7y7TUQ@public.gmane.org> wrote:> > 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? -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Martin <chriscodes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 11/28/06, Bharat <bruparel-x6Fv9fcoW1ZBDgjK7y7TUQ@public.gmane.org> wrote: > > > > 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? > > -- > > Chris Martin > Web Developer > Open Source & Web Standards Advocate > http://www.chriscodes.com/ > > > >-- www.blogsaic.com view, visit, vote --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 28, 2006, at 10:23 PM, Chris Martin 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dion Hewson 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---