Bug with logging file not creating.