Modify Factory Method demo: logger