Logback: how to log only errors to file
问题 I've been reading the logback manual for 2 hours and still can't figure how to do what I need. It is as simple as the title says: I want to log only the errors to a file, and the other levels (including ERROR) to console. This is the root section of my logcat.xml file: <root level="TRACE" > <appender-ref ref="CONSOLE_APPENDER" /> <appender-ref ref="FILE_APPENDER" /> </root> The problem with this configuration is that it logs every level >= TRACE to both appenders. I could let the root with