Attempted to fix log errors.

> Changed creation of log file