Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10794 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

[PATCH] Non blocking IO for buffered logger

Reported by: lifofifo Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveSupport Version: edge
Severity: normal Keywords: threadsafe
Cc:

Description

Experimental patch to implement support for non-blocking IO writes to logger.

It also changes @buffer to buffer so that something like following can be done easily if/when needed :

        class << RAILS_DEFAULT_LOGGER
          def buffer
            @safe_buffer ||= ''
          end
        end

Attachments

non_blocking_io_logger.patch (2.5 kB) - added by lifofifo on 01/13/08 14:51:46.
non_blocking_io_logger.2.patch (2.5 kB) - added by lifofifo on 01/13/08 20:31:14.

Change History

01/13/08 14:51:46 changed by lifofifo

  • attachment non_blocking_io_logger.patch added.

01/13/08 18:31:31 changed by lifofifo

  • cc deleted.
  • keywords set to threadsafe.

01/13/08 20:31:14 changed by lifofifo

  • attachment non_blocking_io_logger.2.patch added.

01/13/08 20:39:55 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [8638]) Use non-blocking writing if available. Closes #10794 [lifofifo]