mercredi 23 juin 2021

How to create a constant log with annotation?

I have a project that has a specific library that has its own LogFactoring where we save information and act as we want, but in all classes I need to define:

private static final MyLogger LOGGER = MyLoggerFactory.getLogger(MyCurrentClass.class);

I would like to create an annotation that already creates this LOGGER constant to be used. I did several searches and didn't find it.





Aucun commentaire:

Enregistrer un commentaire