Method: Net::SMTP#set_debug_output

Defined in:
lib/net/smtp.rb

#set_debug_output(arg) ⇒ Object

WARNING: This method causes serious security holes. Use this method for only debugging.

Set an output stream for debug logging. You must call this before #start.

# example
smtp = Net::SMTP.new(addr, port)
smtp.set_debug_output $stderr
smtp.start do |smtp|
  ....
end


319
320
321
# File 'lib/net/smtp.rb', line 319

def set_debug_output(arg)
  @debug_output = arg
end