... export the log out to a text file?

Use the log dialog. Select all the entries you want and press Ctrl-C. Then use Ctrl-V (or paste) in your favourite text editor.

If you want to process the log messages automatically or you need them in xml format, you can use the command line client for that.