Fixes Issue 10570
Merge pull request #1401 from tom-tan/fix_generateLogger

Fix Issue 10570 - Example of `how` function for AutoImplement should work for non-abstract class