Added TRACE logging level

Added reporting for memory allocation errors