module MiGA::Daemon::Base

def logfh

Writing file handler (IO) to the log file
#
def logfh
  @logfh ||= nil
  return $stderr if show_log?
  return @logfh if @logfh && !@logfh.closed?
  @logfh = File.open(output_file, 'w')
end