Moved init for logging to main