Make sure as much as possible is written to the logs, and not stdout. Also copy an extra 1024 bytes when fetching the system log (and continue capturing a while after stopped, since there may be unflushed system log data in memory).