Recording errors into logs

Currently, any input into logs consists of hardware information, or Benchmark results. However, if a Matrix fails to be allocated, there needs to be some sort of way to record this in the logs.