remove the method, as you able to use property `logger` directly.