now providing output logs in callback