if the System property rt.log.dir is set, standard logging messages are written both to standard out and to the file log.txt inside the directory provided. This allows us to get debugging information quickly.
complete with a test class