instance method dispatcher_log

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

dispatcher_log(level, msg)

No documentation comment.

Parameters

level req
msg req
Source
# File railties/lib/fcgi_handler.rb, line 116
    def dispatcher_log(level, msg)
      time_str = Time.now.strftime("%d/%b/%Y:%H:%M:%S")
      logger.send(level, "[#{time_str} :: #{$$}] #{msg}")
    rescue Exception => log_error  # Logger errors
      STDERR << "Couldn't write to #{@log_file_path.inspect}: #{msg}\n"
      STDERR << "  #{log_error.class}: #{log_error.message}\n"
    end

Defined in railties/lib/fcgi_handler.rb line 116 · View on GitHub · Improve this page · Find usages on GitHub

Defined in RailsFCGIHandler

Type at least 2 characters to search.

↑↓ navigate · open · esc close