Updated logging functions

Added documentation for various #define and for logMem().

Changed how and when logMem() is used in some case in XML parser.

Simplified how LOG_FILE_PATH is used.