Use the inbuilt getLogger() method in the JavaPlugin class. The Minecraft logger is not guaranteed to exist and using it is bad practice.