"log4j:configuration" must match

Issue

  • Why does the warning "log4j: configuration must match" trigger?
2021-08-12 23:34:41.354 INFO  [main][ModuleFrameworkImpl:1587] Starting initial bundles
log4j:WARN Continuable parsing error 33 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,throwableRenderer?,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".
log4j:WARN Continuable parsing error 33 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,throwableRenderer?,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".
log4j:WARN Continuable parsing error 33 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,throwableRenderer?,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".

Environment

  • Liferay DXP 7.2

Resolution

  • The above warning appears that the order of the log4j element or the custom implementation in it is not matched with the sequence. 
  • Also, there is a chance of the reported issue might occur if any changes have been done in log4j.properties, portal-log4j.xml under portal-impl.jar file. Hence, please double-check it and revert the changes if any, and see how it works.
  • Note: In the Liferay DXP 7.2 SP2 vanilla bundle, the version of the log4j is 1.2.17, slf4j is 1.7.12. For more information about the logging implementations, go through the document Adjusting Module Logging.

Additional Information

Please Note: The following procedures and unofficial link involve custom implementation ideas that are beyond the scope of Liferay Support. Please exercise appropriate discretion in the use of this information. For further assistance on the implementation ideas from Liferay, please reach out to our dedicated GS team. Your sales representative is a great resource to discover the connectivity with the GS team to know more about it in detail.

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0