Fixed the logging problem, simply `logger` had to be replaced with `_logger`