Log entries should always go to the file corresponding to the Query, rather than to the user that happened to send the message. Closes #430