How to override logout function

Hello, i want to that type simply when click on logout that time open login page that time open login page with how to get console in “logout successfully message”