Replace deprecated Loggers calls with LogManager. Relates to #32174
The X-Pack opening and the recent other refactorings left a lot of unused imports in the codebase. This commit removes them all.