Add a special LOG_OOM() function to log all OutOfMemory errors (i.e. allocations returning NULL).
This will help to build strings incrementally.