Ruby on Rails Friday, February 10, 2017

On 10 February 2017 at 11:50, 'krfg' via Ruby on Rails: Talk
<rubyonrails-talk@googlegroups.com> wrote:
>
> I would need information about logger.info
> When I try to open test.log Atom warns me that if it opens large files it
> might become unresponsive.
> Shall I take for granted that you are interested it test.log?

Whichever log is relevant at the time, so when running tests then yes
it is test.log. You can use tail to watch the log while you run the
test
tail -f log/test.log
or you can use tail after the event just to show the last lines
tail -n 100 log/test.log

Also you can delete or empty the log file before running the test,
then it will only contain the latest information.

In fact I think logger.info outputs to the console too so you don't
need to look at the log. Not certain about that though.

Colin

>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/31ab7391-bd2d-4342-9d95-3f711ae29cd9%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuq97uzLA2NQ-6NCRro1VJUqLN8srOA4CwxNXwi%2BzyB2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment