<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,10 +34,10 @@ end
 
 puts &quot;=&gt; Rails application starting on http://#{OPTIONS[:ip]}:#{OPTIONS[:port]}&quot;
 
-parameters = [ 
-  &quot;start&quot;, 
-  &quot;-p&quot;, OPTIONS[:port].to_s, 
-  &quot;-a&quot;, OPTIONS[:ip].to_s, 
+parameters = [
+  &quot;start&quot;,
+  &quot;-p&quot;, OPTIONS[:port].to_s,
+  &quot;-a&quot;, OPTIONS[:ip].to_s,
   &quot;-e&quot;, OPTIONS[:environment],
   &quot;-P&quot;, &quot;#{RAILS_ROOT}/tmp/pids/mongrel.pid&quot;
 ]
@@ -50,12 +50,12 @@ else
 
   start_debugger if OPTIONS[:debugger]
 
-  require 'initializer'
-  Rails::Initializer.run(:initialize_logger)
-
   puts &quot;=&gt; Call with -d to detach&quot;
   puts &quot;=&gt; Ctrl-C to shutdown server&quot;
-  tail_thread = tail(Pathname.new(&quot;#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log&quot;).cleanpath)
+
+  log = Pathname.new(&quot;#{File.expand_path(RAILS_ROOT)}/log/#{RAILS_ENV}.log&quot;).cleanpath
+  open(log, (File::WRONLY | File::APPEND | File::CREAT)) unless File.exist? log
+  tail_thread = tail(log)
 
   trap(:INT) { exit }
 </diff>
      <filename>railties/lib/commands/servers/mongrel.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>205750c8dead2449a23173fab0720b7701231d2a</id>
    </parent>
  </parents>
  <author>
    <name>Michael Koziarski</name>
    <email>michael@koziarski.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/437f918646fd141fd57350f55a8890b18ebfb148</url>
  <id>437f918646fd141fd57350f55a8890b18ebfb148</id>
  <committed-date>2008-05-03T17:31:34-07:00</committed-date>
  <authored-date>2008-05-03T17:31:34-07:00</authored-date>
  <message>Allow custom loggers to work with script/server.

Instead of requiring the initializer and initializing the logger, create the file manually before tailing it.

[atnan] Closes #8665 (trac)</message>
  <tree>78d9c4ff425f76c635eb4d312909b0f5d96e992c</tree>
  <committer>
    <name>Michael Koziarski</name>
    <email>michael@koziarski.com</email>
  </committer>
</commit>
