Issue
- Custom plugins (portlets and hooks) are not properly logging with SLF4J implemented, with no log4j2 configurations changed from previous Liferay versions to 7.4 or Quarterly Release.
Environment
- DXP 7.4
- Quarterly Release lower than 2024.Q1.7
Resolution
NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.
- Check your slf4j-api version. If higher than 1.7.x, you may need to downgrade to resolve the issue.(Additionally, you can compare to a clean Liferay bundle at your patch version to verify whether logging is expected to work out-of-the-box for custom plugins.)
- If on a Quarterly Release lower than 2024.Q1.7, please try upgrading to 2024.Q1.7 or consider requesting a hotfix with LPD-21711 fix through a Support ticket.
Additional Information
- For more information about the logging implementations, go through the document Adjusting Module Logging.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión