Understanding the logger example