Vibin Ramakrishnan created LOG4J2-3321:
------------------------------------------

             Summary: RollingRandomAccessFile contains an invalid element or 
attribute "JsonTemplateLayout"
                 Key: LOG4J2-3321
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3321
             Project: Log4j 2
          Issue Type: Bug
            Reporter: Vibin Ramakrishnan


 A configuration in jetty app using log4j2.xml (use slf4j )as below -
{{<JsonTemplateLayout eventTemplateUri="classpath:log4j2JSONLayout.json"/>}}
Throws following error during initialization -

main ERROR RollingRandomAccessFile contains an invalid element or attribute 
"JsonTemplateLayout"

dependencies added are:

slf4j-api - 1.7.32

jcl-over-slf4j - 1.7.32

log4j-api - 2.17.1

log4j-core - 2.17.1

log4j-layout-template-json - 2.17.1

log4j-slf4j-impl - 2.17.1

 

ERROR - 
2022-01-06 12:55:57,087 main ERROR RollingRandomAccessFile contains an invalid 
element or attribute "JsonTemplateLayout"

 

See stackTrace link - 
https://stackoverflow.com/questions/70601087/rollingrandomaccessfile-contains-an-invalid-element-or-attribute-jsontemplatelay



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to