Log class with a background thread writing the log.