Method: Logging::Appenders::Console#reopen

Defined in:
lib/logging/appenders/console.rb

#reopenObject

Reopen the connection to the underlying logging destination. If the connection is currently closed then it will be opened. If the connection is currently open then it will be closed and immediately reopened.



38
39
40
41
42
43
44
45
# File 'lib/logging/appenders/console.rb', line 38

def reopen
  @mutex.synchronize {
    flush if defined? @io && @io
    @io = open_fd
  }
  super
  self
end