Option 1, associated with option 3 (for example, people mentioned using a wrapper such as slf4j), which will allow widespread use of switching between implementations.
declare Logger as a private static final field in each class ie private static final Logger LOGGER = Logger.getLogger(MyClass.class.getName());
Declaring a registrar is not such a big deal, and you should be able to define a new class template in your development environment that automatically generates a registrar code.
Saifuddin merchant
source share