Log file is being created, but is still not used