Logging now working as planned.

- using __PRETTY_FUNCTION__ for now, may change back to __FUNCTION__