[prev in list] [next in list] [prev in thread] [next in thread] 

List:       logback-user
Subject:    Re: [logback-user] produce configuration file from current configuration?
From:       Martin Todorov <carlspring () gmail ! com>
Date:       2016-04-07 2:41:44
Message-ID: CANnZoJufNO1AUd-Q7UM_24DF-R=AsZMudzPPFeZVNrfRTM_1cg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

Glad you might find it of use!

Regarding the REST API, I think you're right. I'm not sure, if I'll have
time to fix it right now. Feel free to submit a pull request, if you like,
otherwise -- I will address it whenever I get some free time.

All the best,

Martin




On Wed, Apr 6, 2016 at 10:49 AM, Norbert Kiesel <nkiesel@metricstream.com>
wrote:

> Nice, I will look at that for inspiration.
>
>
> Quick comment: your REST API use `PUT /logger` to add a logger, and `POST
> /logger` to update an exosting logger.  While that of course works it's a
> bit unusual because normally POST is used to create new items, and PUT is
> used to update existing items.
>
>
> </nk>
>
> ---
>
>
> Norbert Kiesel
> Systems Architect | Engineering
> MetricStream
> 2600 E. Bayshore Road | Palo Alto, CA - 94303
> +1-650-620-2954 | nkiesel@metricstream.com | www.metricstream.com
>
>
> ------------------------------
> *From:* logback-user <logback-user-bounces@qos.ch> on behalf of Martin
> Todorov <carlspring@gmail.com>
> *Sent:* Thursday, March 31, 2016 12:00 PM
> *To:* logback users list
> *Subject:* Re: [logback-user] produce configuration file from current
> configuration?
>
>
>
> Hi Norbert,
>
> We recently put together the following project:
> - https://github.com/carlspring/logback-configuration
> <https://github.com/carlspring/logback-configuration>
> carlspring/logback-configuration
> <https://github.com/carlspring/logback-configuration>
> github.com
> Contribute to logback-configuration development by creating an account on
> GitHub.
>
>
>
> It has a simple REST API and a Spring-based service layer. It's quite easy
> to set up. It has some straight-forward test cases which you can have a
> look at in order to figure out how things work.
> I haven't yet pushed it Maven Central, but if it looks like something you
> might want to use, let me know and I'll release a version 1.0.
>
> Let me know what you think!
> Kind regards,
>
> Martin Todorov
>
>
>
>
> On Thu, Mar 31, 2016 at 6:49 PM, Norbert Kiesel <nkiesel@metricstream.com>
> wrote:
>
>> Hi,
>>
>>
>> we finally switched from a home-grown logging system to slf4j/logback and
>> are overall happy.  However, the old solution (which was much  more
>> limited) offered a web GUI for setting the root log level.  We could of
>> course implement that using the logback API.  However, this will of not be
>> reflected in our logback.xml.  I'm also worried that any other change in
>> that file will simply reset the log level given that we use the
>> `scanPeriod` option.
>>
>>
>> Is there a way to convert a current logback configuration back into an
>> XML (or Groovy) configuration file?
>>
>>
>> </nk>
>>
>> ---
>>
>>
>> Norbert Kiesel
>> Systems Architect | Engineering
>> MetricStream
>> 2600 E. Bayshore Road | Palo Alto, CA - 94303
>> +1-650-620-2954 | nkiesel@metricstream.com | www.metricstream.com
>>
>> *Confidentiality Notice:*This email and any files transmitted with it
>> are confidential and intended solely for the use of the individual or
>> entity to whom they are addressed. This message contains confidential
>> information and is intended only for the individual named. If you are not
>> the named addressee you should not disseminate, distribute or copy this
>> e-mail. Please notify the sender immediately by e-mail if you have received
>> this e-mail by mistake and delete this e-mail from your system. If you are
>> not the intended recipient you are notified that disclosing, copying,
>> distributing or taking any action in reliance on the contents of this
>> information is strictly prohibited
>>
>> _______________________________________________
>> logback-user mailing list
>> logback-user@qos.ch
>> http://mailman.qos.ch/mailman/listinfo/logback-user
>>
>
>
> _______________________________________________
> logback-user mailing list
> logback-user@qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>

[Attachment #5 (text/html)]

<div dir="ltr"><br><div><br></div><div>Hi,</div><div><br></div><div>Glad you might \
find it of use!</div><div><br></div><div>Regarding the REST API, I think you&#39;re \
right. I&#39;m not sure, if I&#39;ll have time to fix it right now. Feel free to \
submit a pull request, if you like, otherwise -- I will address it whenever I get \
some free time.</div><div><br></div><div>All the \
best,</div><div><br></div><div>Martin</div><div><br></div><div><br></div><div><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 10:49 AM, \
Norbert Kiesel <span dir="ltr">&lt;<a href="mailto:nkiesel@metricstream.com" \
target="_blank">nkiesel@metricstream.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Tahoma,Geneva,sans-serif">
 <p>Nice, I will look at that for inspiration.</p>
<p><br>
</p>
<p>Quick comment: your REST API use `PUT /logger` to add a logger, and `POST /logger` \
to update an exosting logger.   While that of course works it&#39;s a bit unusual \
because normally POST is used to create new items, and PUT is used to update existing \
items.</p><span class=""> <p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><span lang="en-US">
<div align="justify" style="margin:0"><font size="2" face="Arial,sans-serif"><span \
style="font-size:10pt"><font size="3" color="#17365D" face="Calibri,sans-serif"><span \
style="font-size:12pt">&lt;/nk&gt;<br> <br>
---<br>
<br>
</span></font></span></font><br>
<div style="color:Black;font-size:10pt">
<div style="color:DarkBlue">Norbert Kiesel</div>
<div style="color:DarkBlue">Systems Architect | Engineering</div>
<div style="font-size:12pt"><span style="font-weight:bold">Metric</span>Stream</div>
<div>2600 E. Bayshore Road | Palo Alto, CA - 94303</div>
<div><a href="tel:%2B1-650-620-2954" value="+16506202954" \
target="_blank">+1-650-620-2954</a> | <a href="mailto:nkiesel@metricstream.com" \
target="_blank">nkiesel@metricstream.com</a> | <span style="color:Blue"><a \
href="http://www.metricstream.com" \
target="_blank">www.metricstream.com</a></span></div> </div>
<font size="2" face="Arial,sans-serif"><span style="font-size:10pt"><font size="3" \
color="#17365D" face="Calibri,sans-serif"><span style="font-size:12pt"><font \
size="2"></font></span></font></span></font></div> </span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
</span><div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" \
style="font-size:11pt"><b>From:</b> logback-user &lt;<a \
href="mailto:logback-user-bounces@qos.ch" \
target="_blank">logback-user-bounces@qos.ch</a>&gt; on behalf of Martin Todorov \
&lt;<a href="mailto:carlspring@gmail.com" \
target="_blank">carlspring@gmail.com</a>&gt;<br> <b>Sent:</b> Thursday, March 31, \
2016 12:00 PM<br> <b>To:</b> logback users list<br>
<b>Subject:</b> Re: [logback-user] produce configuration file from current \
configuration?</font> <div>  </div>
</div>
<div>
<div dir="ltr"><span class=""><br>
<div><br>
</div>
<div>Hi Norbert,</div>
<div><br>
</div>
<div>We recently put together the following project:</div>
</span><div>-  <a href="https://github.com/carlspring/logback-configuration" \
target="_blank">https://github.com/carlspring/logback-configuration</a> <div \
style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px"> <table \
cellspacing="0" style="width:90%;overflow:auto;padding-top:20px;padding-bottom:20px;ma \
rgin-top:20px;border-top-width:1px;border-top-style:dotted;border-top-color:rgb(200,20 \
0,200);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(200,200,200);background-color:rgb(255,255,255)">
 <tbody>
<tr valign="top" style="border-spacing:0px">
<td colspan="1" style="width:250px;display:table-cell;padding-right:20px">
<div style="min-height:250px;margin:auto;display:table;width:250px;background-color:rgb(255,255,255)">
 <a href="https://github.com/carlspring/logback-configuration" \
style="display:table-cell;text-align:center" target="_blank"><img width="250" \
height="250" style="display:inline-block;margin-left:auto;margin-right:auto;max-width: \
250px;max-height:250px;min-height:250px;width:250px;border-width:0px;vertical-align:bottom" \
src="https://avatars1.githubusercontent.com/u/1436265?v=3&amp;s=400"></a></div> </td>
<td colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div></div>
<div style="color:rgb(67,33,88);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,&#39;Segoe \
UI Light&#39;,&#39;Segoe WP Light&#39;,&#39;Segoe UI&#39;,&#39;Segoe \
WP&#39;,Tahoma,Arial,sans-serif;line-height:21px"> <a \
href="https://github.com/carlspring/logback-configuration" \
style="text-decoration:none" \
target="_blank">carlspring/logback-configuration</a></div> <div style="margin:10px \
0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,&#39;Segoe \
UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:14px;line-height:14px"> \
<a href="http://github.com" target="_blank">github.com</a></div> <div \
style="display:block;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,&#39;Segoe \
UI&#39;,&#39;Segoe WP&#39;,Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
 Contribute to logback-configuration development by creating an account on \
GitHub.</div> </td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div><span class="">
<div><br>
</div>
<div>It has a simple REST API and a Spring-based service layer. It&#39;s quite easy \
to set up. It has some straight-forward test cases which you can have a look at in \
order to figure out how things work.</div> <div>I haven&#39;t yet pushed it Maven \
Central, but if it looks like something you might want to use, let me know and \
I&#39;ll release a version 1.0.</div> <div><br>
</div>
<div>Let me know what you think!</div>
<div>Kind regards,</div>
<div><br>
</div>
<div>Martin Todorov</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</span></div><span class="">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 31, 2016 at 6:49 PM, Norbert Kiesel <span \
dir="ltr"> &lt;<a href="mailto:nkiesel@metricstream.com" \
target="_blank">nkiesel@metricstream.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Tahoma,Geneva,sans-serif">
 <p>Hi,</p>
<p><br>
</p>
<p>we finally switched from a home-grown logging system to slf4j/logback and are  \
overall happy.   However, the old solution (which was much   more limited) offered a \
web GUI for setting the root  log level.   We could of course implement that using \
the logback  API.   However,  this will of  not be reflected in our logback.xml.   \
I&#39;m also worried that any other change in that file will simply reset the log \
level given that we use the `scanPeriod` option.</p> <p><br>
</p>
<p>Is there a way to convert a current logback configuration back into an XML (or \
Groovy) configuration file?</p> <p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><span lang="en-US">
<div align="justify" style="margin:0"><font size="2" face="Arial,sans-serif"><span \
style="font-size:10pt"><font size="3" color="#17365D" face="Calibri,sans-serif"><span \
style="font-size:12pt">&lt;/nk&gt;<br> <br>
---<br>
<br>
</span></font></span></font><br>
<div style="color:Black;font-size:10pt">
<div style="color:DarkBlue">Norbert Kiesel</div>
<div style="color:DarkBlue">Systems Architect | Engineering</div>
<div style="font-size:12pt"><span style="font-weight:bold">Metric</span>Stream</div>
<div>2600 E. Bayshore Road | Palo Alto, CA - 94303</div>
<div><a href="tel:%2B1-650-620-2954" value="+16506202954" \
target="_blank">+1-650-620-2954</a> | <a href="mailto:nkiesel@metricstream.com" \
target="_blank">nkiesel@metricstream.com</a> | <span style="color:Blue"><a \
href="http://www.metricstream.com" \
target="_blank">www.metricstream.com</a></span></div> </div>
<font size="2" face="Arial,sans-serif"><span style="font-size:10pt"><font size="3" \
color="#17365D" face="Calibri,sans-serif"><span style="font-size:12pt"><font \
size="2"></font></span></font></span></font></div> </span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p style="font-size:9pt;color:gray;line-height:8pt;font-family:calibri"><b><u>Confidentiality \
Notice:</u></b>This email and any files transmitted with it are confidential and \
intended solely for the use of the individual or entity to whom they are addressed.  \
This message contains confidential information and is intended only for the \
individual named. If you are not the named addressee you should not disseminate, \
distribute or copy this e-mail. Please notify the sender immediately by e-mail if you \
have received  this e-mail by mistake and delete this e-mail from your system. If you \
are not the intended recipient you are notified that disclosing, copying, \
distributing or taking any action in reliance on the contents of this information is \
strictly prohibited</p> </div>
<br>
_______________________________________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" \
target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br> \
</blockquote> </div>
<br>
</div>
</span></div>
</div>
</div>
</div>

<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" rel="noreferrer" \
target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>



[Attachment #6 (text/plain)]

_______________________________________________
logback-user mailing list
logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic