<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Hi Gokturk,</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">I'm just a logback user. I see what you mean about that FAQ question. It's a bit misleading.  The logback.xml must be in the root folder, unless you override it. </span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Have a look here: <a href="http://logback.qos.ch/manual/configuration.html">http://logback.qos.ch/manual/configuration.html</a></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Which tells you that you can do this:</span></div><div><p class="source" style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(221, 221, 221); padding-left: 1ex; padding-bottom: 0.5ex; padding-top: 0.5ex;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">java <b>-Dlogback.configurationFile=/path/to/config.xml</b>chapters.configuration.MyApp1</span></p></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">David </span></div><div style="-webkit-text-size-adjust: auto;"><br></div><br></div><div style="-webkit-text-size-adjust: auto;">On 17 Aug 2014, at 16:33, gokturk mavus <<a href="mailto:gokturkmavus@gmail.com">gokturkmavus@gmail.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><div dir="ltr"><div>Thanks for your kindness and replay, David</div><div><br></div><div>> If you check out the configuration chapter of the logback documentation it tells you how to specify alternate locations for logback.xml.<br>
</div><div><br></div><div>In FAQ / logback classic / 3rd question, it say I can not. Am I missing something?</div><div><br></div><div>As I understand you are one of the developer of Logback. It seems you know how to do. So, can you briefly tell me how I can do?</div>
<div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-08-17 12:46 GMT+03:00 David Roussel <span dir="ltr"><<a href="mailto:nabble@diroussel.xsmail.com" target="_blank">nabble@diroussel.xsmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
If you check out the configuration chapter of the logback documentation it tells you how to specify alternate locations for logback.xml.<br>
<br>
As for testing I just tend to test manually. To use automated testing you'd need to read in the log file from disk and verify it's contents somehow.<br>
<br>
David<br>
<div><div class="h5"><br>
> On 17 Aug 2014, at 10:14, gokturk mavus <<a href="mailto:gokturkmavus@gmail.com">gokturkmavus@gmail.com</a>> wrote:<br>
><br>
> In the project hierarchy shown below, I want to put logback.xml<br>
> configuration file as shown below.  After having done so, do I need<br>
> anything so as to have logback fully working. Also, how do I test my<br>
> configuration file is fully working? ( How can I test, sort of unit<br>
> test, my configuration file to see whether it works or not?)<br>
><br>
><br>
> .............Project folder<br>
> ..................| ----------------- src<br>
> ..................| ----------------- configuration<br>
> ..............................................|------------------<br>
> logback_and_slf4j<br>
> .......................................................................|------------------<br>
> logback.xml<br>
><br>
><br>
> Platform: windows<br>
> Eclipse:Version: Indigo Service Release 2 Build id: 20120216-1857<br>
</div></div>> _______________________________________________<br>
> Logback-user mailing list<br>
> <a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
> <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><span>_______________________________________________</span><br><span>Logback-user mailing list</span><br><span><a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a></span><br><span><a href="http://mailman.qos.ch/mailman/listinfo/logback-user">http://mailman.qos.ch/mailman/listinfo/logback-user</a></span></div></blockquote></body></html>