added optional logdata to logshmim
added optional logdata to logshmim