logs output to logdir; use File:: modules for lognames; etc