class Assistor::LogFile

Public Class Methods

new(log_file) click to toggle source
# File lib/assistor/log_file.rb, line 7
def initialize(log_file)
  @log_file = log_file
  @logger = Logger.new(log_file)
end

Public Instance Methods

reopen() click to toggle source
# File lib/assistor/log_file.rb, line 12
def reopen
  $stderr.reopen @log_file, 'a+'
  $stdout.reopen $stderr
  $stdout.sync = $stderr.sync = true
end