Log separate log levels to separate files in log4j2 properties file
问题 Is there any way We can create separate log files for different log levels. All I want is to log "error" logs to one file and "info" logs to another file. I did not find any solution to do this in log4j2.properties. Here is the log4j2.xml which I got and it works fine. Can anyone help me writing the same in properties file. <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Properties> <Property name="log-path">logs</Property> </Properties> <Appenders> <Console name=