Use std::string for log file name in module Log
Take advantage of delete not acting on null values

The code 'delete 0' does nothing. So you can shorten code
like:

  if (x != 0) {
    delete x
  }

to simply: delete x