Logging with slightly better macro.