new macros for E=excpetion and P=pointer logging