docs: def log(db, job_id, timestamp, level, process, message):
      """
      Write a log record in the database.
  
      :param db:
          a :class:`openquake.server.dbapi.Db` instance
      :param job_id:
          a job ID
      :param timestamp:
          timestamp to store in the log record
      :param level:
          logging level to store in the log record
      :param process:
          process ID to store in the log record
      :param message:
          message to store in the log record
      """
      db('INSERT INTO log (job_id, timestamp, level, process, message) '
         'VALUES (?X)', (job_id, timestamp, level, process, message))