Learn how to use event annotations and retargeting for printf or file I/O in combination with middleware.