[LFTILI-76] using ofstream instead of complete redirect for logging to file