private void LogTheBirdsWithExtensionMethods()
 {
     Duck duck = new Duck();
     duck.Log("Logging the duck using extension methods");
 }
        private void LogTheBirdsGenerically()
        {
            Duck duck = new Duck();

            GenericLogger.For(duck).WriteMessage("Logging a duck generically");
            GenericLogger.For<Goose>().WriteMessage("Logging a goose generically");
        }