Re-worked logging to use log4j directly but still write to the TeamCity Agent log file.