Method: Net::SSH::Loggable#error

Defined in:
lib/net/ssh/loggable.rb

#errorObject

Displays the result of yielding if the log level is Logger:ERROR or greater.



42
43
44
# File 'lib/net/ssh/loggable.rb', line 42

def error
  logger.add(Logger::ERROR, nil, facility) { yield } if logger && logger.error?
end