How to log sudoers

vi /root/.bashrc

vi /etc/rsyslog.conf