Move WARN and ERROR logs to their own log file

I’m not certain that’s possible. The typical thing one would do is move all the logs from a specific add-on or specific part of OH to it’s own log, regardless of logging level. It is usually more informative to see all the log statements from all the logging levels for a given set of code together since that will show you what’s happening in context. If you split them up you end up with needing to correlate statements across multiple files in order to figure out what happened, defeating the whole purpose of the logs in the first place.

There are lots of examples for putting all the logs from a given add-on into it’w own file. Log4j2 Sample Config is a great example. There is also an example in the Zwave binding docs I believe.