I am using log4j for one of my projects and I know it is possible to set thresholds for each appender.
My objective is to log only INFO messages into a file and only ERROR messages in another file.
The problem of using threshold's for this is that if i set a appender threshold to INFO and the other to ERROR, when I log an ERROR message, that message goes to both files (appenders).
How can I achieve this?
Thanks in advance