Replacing puts with $logger