Adapted log output to add LogMem and LogDebug2, as well as pos info
Adapted log outputs