In reply to Michael Goulding.

I don't know what would cause the log content to be returned in the wrong order. You didn't change the Async property on the LanguageService by any chance, did you? Async is False by default, but if it were set to True then the Log fetching code could be processed before the program has completed running.