Fix log not being included correctly.
Update targets to use new logging system.
Update main entry to use logging system.