def create_logger path
        #path = File.join(ENV["LOGDIR"] || "./" ,"canis14.log")
        _path   = File.open(path, File::WRONLY|File::TRUNC|File::CREAT) 
        logg = Logger.new(_path)
        raise "Could not create logger: #{path}" unless logg
        # if not set, will default to 0 which is debug. Other values are 1 - info, 2 - warn
        logg.level = ENV["CANIS_LOG_LEVEL"].to_i
        colors = Ncurses.COLORS
        logg.info "START #{colors} colors  -- #{$0} win: #{@window} : log level: #{logg.level}. To change log level, increase CANIS_LOG_LEVEL in your environment to 1 or 2 or 3."
        return logg
      end
def create_logger path
        #path = File.join(ENV["LOGDIR"] || "./" ,"canis14.log")
        _path   = File.open(path, File::WRONLY|File::TRUNC|File::CREAT) 
        logg = Logger.new(_path)
        raise "Could not create logger: #{path}" unless logg
        # if not set, will default to 0 which is debug. Other values are 1 - info, 2 - warn
        logg.level = ENV["CANIS_LOG_LEVEL"].to_i
        colors = Ncurses.COLORS
        logg.info "START #{colors} colors  -- #{$0} win: #{@window} : log level: #{logg.level}. To change log level, increase CANIS_LOG_LEVEL in your environment to 1 or 2 or 3."
        return logg
      end
create a logger giving a path.