# Doesnt show log on command prompt

**URL:** <https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737>\
**Category:** Mongrel\
**Created:** [March 24, 2008, 8:55am UTC](https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737 "2008-03-24T08:55:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 24, 2008, 8:55am UTC](https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737/1 "2008-03-24T08:55:16Z")

</div>

I have latest version of mongrel installed.  
But when I run ‘ruby script/server’ it starts the server and shows  
nothing else, like development log it used to show on my previous dev  
machine.

Any idea?

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 24, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737/2 "2008-03-24T19:08:29Z")

</div>

On Mon, Mar 24, 2008 at 4:55 AM, Vapor .. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have latest version of mongrel installed.  
> But when I run ‘ruby script/server’ it starts the server and shows  
> nothing else, like development log it used to show on my previous dev  
> machine.

Are you expecting script/server dump information to the console? or in  
the log file?

> Any idea?

Can you rephrase your question? Is not quite clear what are you  
getting and what are you expecting…

Btw, if you plan to post from anonymous posting sites (like  
ruby-forum) at least provide a better alias than “Vapor”.

## – Luis L. Multimedia systems

Human beings, who are almost unique in having the ability to learn from  
the experience of others, are also remarkable for their apparent  
disinclination to do so.  
Douglas Adams

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 24, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737/3 "2008-03-24T19:19:34Z")

</div>

well actually I used to have a dev machine where it would show  
development log on command prompt (console) as I would use the app …  
displaying behind the scene info like queries and stuff

but it doesnt do on new machine which is rather fresh…

somebody suggested tail --follow log/development.log

but that takes a separate window, it used to display info right after  
ruby script/serve

i hope it makes sense this time

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 24, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737/4 "2008-03-24T19:33:50Z")

</div>

Put this in ~/.irbrc

script\_console\_running = ENV.include?(‘RAILS\_ENV’) &&  
IRB.conf[:LOAD\_MODULES] &&  
IRB.conf[:LOAD\_MODULES].include?(‘console\_with\_helpers’)  
rails\_running = ENV.include?(‘RAILS\_ENV’) && !(IRB.conf[:LOAD\_MODULES]  
&& IRB.conf[:LOAD\_MODULES].include?(‘console\_with\_helpers’))  
irb\_standalone\_running = !script\_console\_running && !rails\_running

if script\_console\_running  
require ‘logger’  
Object.const\_set(:RAILS\_DEFAULT\_LOGGER, Logger.new(STDOUT))  
end

It doesn’t have anything to do with Mongrel.

Evan

---

<div class="post-metadata">

**Author:** ![vapor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5e9695/32.png) [@vapor](https://www.ruby-forum.com/u/vapor)\
**Post date:** [March 24, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/doesnt-show-log-on-command-prompt/132737/5 "2008-03-24T19:38:11Z")

</div>

…if you meant the Rails console. You say ‘console’ and ‘server’  
both; I should have read more carefully.

If you want it in the script/server STDOUT you could add something  
similar to config/environment.rb.

Evan
