Add logger
Fix logger outputs