This is my log4j2 `JSON config when I use one file appenders it works fine. when I use two file appenders getting the error mention in the title.cant we add more than 1 file appenders. I don’t want to use a rolling file appender. Java code for creating logger variables Answer Try to define your appenders using type attribute like