diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-12 14:25:25 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-12 14:25:41 -0700 |
commit | 51aeae91ace4d0afb934e2d9a21000f2ddc4ea53 (patch) | |
tree | e5438cd412226eaccebb17397a56a190867246d7 /railties/lib/rails/commands | |
parent | 2ad34f46a1c4b8c59f37c2846ed0fcf3b4401e3a (diff) | |
download | rails-51aeae91ace4d0afb934e2d9a21000f2ddc4ea53.tar.gz rails-51aeae91ace4d0afb934e2d9a21000f2ddc4ea53.tar.bz2 rails-51aeae91ace4d0afb934e2d9a21000f2ddc4ea53.zip |
allow people to specify custom formatters, use the default formatter in production so that PID and timestamp are logged. fixes #5388
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/server.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 0b757cbe28..a608693ca4 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -71,6 +71,8 @@ module Rails wrapped_app # touch the app so the logger is set up console = ActiveSupport::Logger.new($stdout) + console.formatter = Rails.logger.formatter + Rails.logger.extend(ActiveSupport::Logger.broadcast(console)) end |