docs: def log(self, source: str, target: str, flags: int, msg: str, mtype: str) -> None:
          """Logs a message to the database.
  
          | source: The source of the message.
          | target: The target of the message.
          | flags: Is the user a operator or voiced?
          | msg: The text of the message.
          | msg: The type of message.
          | time: The current time (Unix Epoch).
  
          """
          entry = Log(source=str(source), target=target, flags=flags, msg=msg, type=mtype, time=datetime.now())
          with self.session_scope() as session:
              session.add(entry)
              session.flush()