Changed logging mode to logging file