Made the local logging setup fully async