Added logging example to redirect stdouts to custom logger in task