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

On Mon, Mar 24, 2008 at 2:32 PM, Evan Weaver <[EMAIL PROTECTED]> wrote:
> 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
>
>
>
>  On Mon, Mar 24, 2008 at 2:19 PM, Vapor .. <[EMAIL PROTECTED]> wrote:
>  > 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
>  >
>  > --
>  >  Posted via http://www.ruby-forum.com/.
>  >  _______________________________________________
>  >
>  >
>  > Mongrel-users mailing list
>  >  Mongrel-users@rubyforge.org
>  >  http://rubyforge.org/mailman/listinfo/mongrel-users
>  >
>
>
>
>  --
>  Evan Weaver
>  Cloudburst, LLC
>



-- 
Evan Weaver
Cloudburst, LLC
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to