Fixed logging to individual files