From English log (in) + -ar. Compare Spanish loguear.
Practice speaking and memorizing "logar" and many other words and sentences in Portuguese.