<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
p.Pr-formataoHTML, li.Pr-formataoHTML, div.Pr-formataoHTML
        {mso-style-name:"Pré-formatação HTML";
        mso-style-link:"Pré-formatação HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.Pr-formataoHTMLChar
        {mso-style-name:"Pré-formatação HTML Char";
        mso-style-priority:99;
        mso-style-link:"Pré-formatação HTML";
        font-family:Consolas;}
span.tag
        {mso-style-name:tag;}
span.pln
        {mso-style-name:pln;}
span.atn
        {mso-style-name:atn;}
span.pun
        {mso-style-name:pun;}
span.atv
        {mso-style-name:atv;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=DA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Logback first looks for logback-test.xml.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Would it be permissible for you to provide _<i>that</i>_ and then from within that do your own stuff, and then include the official logback.xml?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If it can inspire, I am using the facility of logback looking for logback.xml in the classpath, and then it only consist of an include instruction to allow me to locate the actual configuration in a file relative to my current working directory.<o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></a></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] <b>On Behalf Of </b>Vitor Granzinoli Vellozo<br><b>Sent:</b> 30. maj 2011 14:15<br><b>To:</b> logback users list<br><b>Subject:</b> [logback-user] RES: Doubt about multiple configurations<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>David,<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It’s almost that!<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>My problem is I have to use a specific logback configuration and I cannot modify it, because the<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Client archteture do not allow this possibility to us.<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So, that “include” you suggested, unfortunatelly I also cannot use.<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Is there a possibility to use another logback configuration totally separated from the<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>application logback configuration?<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Is there a possibility to have a logback.xml to the application and another logback_specific.xml to specific<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>application points, to generate a specific business log?<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you very much,<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Vitor<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=PT-BR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=PT-BR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span lang=PT-BR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] <b>Em nome de </b>David Roussel<br><b>Enviada em:</b> sexta-feira, 27 de maio de 2011 16:49<br><b>Para:</b> logback users list<br><b>Assunto:</b> Re: [logback-user] Doubt about multiple configurations<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=PT-BR><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=PT-BR>In your main logback.XML you can include another like this:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=PT-BR><o:p>&nbsp;</o:p></span></p></div><div style='border:solid #888888 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt'><pre style='background:#EEEEEE;background-image:initial;background-attachment:initial;background-origin: initial;background-clip: initial;background-position:initial initial;background-repeat:initial initial'><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>&lt;configuration&gt;</span></span><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'>&nbsp; </span></span><span class=tag><b><span lang=PT-BR style='font-family:Courier;color:#000088'>&lt;include</span></b></span><span class=pln><b><span lang=PT-BR style='font-family:Courier;color:black'> </span></b></span><span class=atn><b><span lang=PT-BR style='font-family:Courier;color:#660066'>file</span></b></span><span class=pun><b><span lang=PT-BR style='font-family:Courier;color:#666600'>=</span></b></span><span class=atv><b><span lang=PT-BR style='font-family:Courier;color:#008800'>&quot;src/main/java/chapters/configuration/includedConfig.xml&quot;</span></b></span><span class=tag><b><span lang=PT-BR style='font-family:Courier;color:#000088'>/&gt;</span></b></span><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'>&nbsp; </span></span><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>&lt;root</span></span><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'> </span></span><span class=atn><span lang=PT-BR style='font-family:Courier;color:#660066'>level</span></span><span class=pun><span lang=PT-BR style='font-family:Courier;color:#666600'>=</span></span><span class=atv><span lang=PT-BR style='font-family:Courier;color:#008800'>&quot;DEBUG&quot;</span></span><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>&gt;</span></span><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'>&nbsp; &nbsp; </span></span><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>&lt;appender-ref</span></span><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'> </span></span><span class=atn><span lang=PT-BR style='font-family:Courier;color:#660066'>ref</span></span><span class=pun><span lang=PT-BR style='font-family:Courier;color:#666600'>=</span></span><span class=atv><span lang=PT-BR style='font-family:Courier;color:#008800'>&quot;includedConsole&quot;</span></span><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'> </span></span><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>/&gt;</span></span><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span class=pln><span lang=PT-BR style='font-family:Courier;color:black'>&nbsp; </span></span><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>&lt;/root&gt;</span></span><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span lang=PT-BR style='font-family:Courier;color:black'><br><br><o:p></o:p></span></pre><pre style='background:#EEEEEE'><span class=tag><span lang=PT-BR style='font-family:Courier;color:#000088'>&lt;/configuration&gt;</span></span><span lang=PT-BR style='font-family:Courier'><o:p></o:p></span></pre></div><div><p class=MsoNormal><span lang=PT-BR style='font-size:13.5pt;font-family:"Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=PT-BR><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=PT-BR>Then in your second file you can configure multiple appenders.&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=PT-BR><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=PT-BR>Does that work? I'm not 100% sure I understand the question.&nbsp;<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=PT-BR><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=PT-BR>David<br><br>On 26 May 2011, at 19:38, &quot;Vitor Granzinoli Vellozo&quot; &lt;<a href="mailto:vitor.vellozo@cpmbraxis.com">vitor.vellozo@cpmbraxis.com</a>&gt; wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>Hi Logbackers,<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>In my application, I need multiple configurations to generate multiple files.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>The first problem is, I have to use one logback configuration with no modifications (because we have to use a<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>proprietary framework, it is a framework of our client), so I have to keep a main configuration.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>The second problem is, the business of my application needs more than 3 different logs, so I need at list one more<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>Logback configuration where I can put more than one file appender.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>My question is: How can I have one more logback configuration that do not have any application dependencies. That<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>can be read from a “Helper/Util” class without any help from the infrastruture (ex: Spring).<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>Or, if anyone have another idea?<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>Thanks a lot!<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>Vitor<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=PT-BR>&nbsp;<o:p></o:p></span></p></div></div></blockquote><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span lang=PT-BR>_______________________________________________<br>Logback-user mailing list<br><a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br><a href="http://qos.ch/mailman/listinfo/logback-user">http://qos.ch/mailman/listinfo/logback-user</a><o:p></o:p></span></p></div></blockquote></div></body></html>