I’m trying to log everything that happens in my application to two logs: one log will have everything, the other will only have INFO and upwards (so, one file will have everything, while the other will only have logs of level INFO, WARN, ERROR and so on). The first file is meant for the devs, while the second for the testers.
Anyone can point me in the right direction here? I read this article about custom filters:
but I was thinking that since all I want is exclude one level from one file, that there might be an easier, native way of doing this. Can someone give me an example of how I would do this in the properties file?
Thanks.
Point you logger to two appenders. One with a threshold set to Info.
Good Example
Copied from example…