move logging init to _configure_logging
only sets file logger when not in debug or test