Updated to use Token-based logging and Asynchronous logging