new(log = nil, opt = {}) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/logger.rb, line 481
    def initialize(log = nil, opt = {})
      @dev = @filename = @shift_age = @shift_size = nil
      @mutex = LogDeviceMutex.new
      if log.respond_to?(:write) and log.respond_to?(:close)
        @dev = log
      else
        @dev = open_logfile(log)
        @dev.sync = true
        @filename = log
        @shift_age = opt[:shift_age] || 7
        @shift_size = opt[:shift_size] || 1048576
      end
    end
Register or log in to add new notes.