0

IntelliJ IDEA 2022.2.1 Ultimate Edition

When I open log4j2.xml file in a project that is working fine with Eclipse, IntelliJ complains about tag with error "Wrong root element"

enter image description here

What is the reason and how to resolve? The tag is correct from what I read from log4j2 site https://logging.apache.org/log4j/2.x/manual/configuration.html

pixel
  • 9,653
  • 16
  • 82
  • 149
  • 1
    Check [this answer](https://stackoverflow.com/questions/13904481/in-log4j2-how-do-i-associate-an-xml-schema-with-log4j2-xml). Fetch the remote xsd in the IDE so that it can recognize the schema. – CrazyCoder Oct 31 '22 at 17:56

0 Answers0