[fix #46799349] Moved the logger to a separate class