<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial" size="2"><span style="font-size:10pt;">
<div>Indeed!</div>
<div>&nbsp;</div>
<div>The tresholdFilter seems to be what I need : <a href="http://logback.qos.ch/manual/filters.html#thresholdFilter"><font color="blue"><u>http://logback.qos.ch/manual/filters.html#thresholdFilter</u></font></a>.</div>
<div>I skipped the filter part when I was reading for general purpose information. I thought it was for very advanced user.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div>Bertrand Dechoux</div>
<div>&nbsp;</div>
<div><font face="Courier New">---------------------------------</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">Hello, </font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">You can create 2 appenders : </font></div>
<div><font face="Courier New">- one for your specific file (only errors) and the other with all levels</font></div>
<div><font face="Courier New">- use filters in the first one : <a href="http://logback.qos.ch/manual/filters.html"><font color="blue"><u>http://logback.qos.ch/manual/filters.html</u></font></a>&nbsp; the way the 1st appender log only the logs with level.isEquals
error level</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">---------------------------------</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">Hi,</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">I am new to logback configuration. I have read the online manual but clearly not in depth.</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">I would like to log in a separate file all ERROR logs but keep these logs at the same time where they are supposed to be.</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">I understand I could use root with an ERROR level and a file appender but then I woul lose all the details (logs lower than ERROR).</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">Is there any obvious way that I might have missed?</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">Regards,</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div><font face="Courier New">Bertrand Dechoux</font></div>
<div><font face="Courier New">&nbsp;</font></div>
<div>&nbsp;</div>
</span></font>
</body>
</html>