added logging of login/logout/keepAlive