<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br>Hello, <br><br>You can create 2 appenders : <br>- one for your specific file (only errors) and the other with all levels <br>- use filters in the first one : http://logback.qos.ch/manual/filters.html&nbsp; the way the 1st appender log only the logs with level.isEquals error level<br><br>Regards<br><br><div><hr id="stopSpelling">From: bertrand.dechoux-prestataire@bforbank.com<br>To: logback-user@qos.ch<br>Date: Fri, 19 Aug 2011 08:50:16 +0000<br>Subject: [logback-user] All error in a separate file<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">



<style>
.ExternalClass .ecxEmailQuote
{margin-left:1pt;padding-left:4pt;border-left:#800000 2px solid;}

</style>


<font face="Arial" size="2"><span style="font-size:10pt">
<div>Hi,</div>
<div>&nbsp;</div>
<div>I am new to logback configuration. I have read the online manual but clearly not in depth.</div>
<div>&nbsp;</div>
<div>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.</div>
<div>&nbsp;</div>
<div>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).</div>
<div>&nbsp;</div>
<div>Is there any obvious way that I might have missed?</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Bertrand Dechoux</div>
<div>&nbsp;</div>
</span></font>


<br>_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user</div>                                               </div></body>
</html>