# Redirect console error to a log file

**URL:** <https://www.ruby-forum.com/t/redirect-console-error-to-a-log-file/134758>\
**Category:** Rails\
**Created:** [April 14, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/redirect-console-error-to-a-log-file/134758 "2008-04-14T21:26:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [April 14, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/redirect-console-error-to-a-log-file/134758/1 "2008-04-14T21:26:58Z")

</div>

Hi,  
This should be simple but I can’t make it work. JRuby 1.1RC3 on Rails  
2.0.2, Mongrel 1.1.4 (Java), WinXP.

I start the development server from a command line. When I hit a page  
the console fills up with error messages that do not appear in the log  
file. There are so many messages that I can’t scroll up to the top.  
How do I get these messages into a log file?

TIA,  
John
