How to log and trace the shutdown/reboot/logoff from KWIN and plasmashell

I want to log and troubleshoot issues with KWIN and plasmashell related to shutdown or reboot or logoff. Does the KWIN and Plasma shell write to any log for the same?