Removed the external annotations since I can't get them to work in IntelliJ, and that means I can't run the tests in the IDE
Custom function for getting the logger in a null-safe manner