Updated logger example.