I would like to set custom log level for Spring @Configuration bean. Proxy name is dynamically generated such as:
com.vegcatalog.app.config.CustomServletRequestListener$$EnhancerBySpringCGLIB$$7a65e8cd
Putting this line to log4j
logging.level.com.vegcatalog.app.config.CustomServletRequestListener = TRACE
does not help as the name is suffixed by Spring's Enhancer. I have other items in "config" package that should stay at default level, so this is not the one I want:
logging.level.com.vegcatalog.app.config = DEBUG
Is there any other solution than moving class to its own package just because lack of configuration options?
Thanks!
Aucun commentaire:
Enregistrer un commentaire