Module: Logging

Defined in:
ext/oci8/oraconf.rb

Class Method Summary collapse

Class Method Details

.openObject



21
22
23
24
25
26
27
28
29
30
# File 'ext/oci8/oraconf.rb', line 21

def Logging::open
  begin
    $stderr.reopen($log)
    $stdout.reopen($log)
    yield
  ensure
    $stderr.reopen($orgerr)
    $stdout.reopen($orgout)
  end
end