Once the shell is changed ( e.g. sudo csh ) or user is switched ( sudo testuser ) the logging does not happen. For e.g. all the commands executed after changing the shell or switching user do not get logged. Is there any way we can have logging in such situation also.