<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: java.util.logging usage in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51790#M30314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps… their stated goal of "(JUL) reason that it doesnt add any extra dependencies" is hard to ignore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's a good goal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even a 'small' framework like slf4j is still a PITA sometimes depending on where you deploy it. Clashes between slf4j are handled well, but i'd rather avoid the clashes completely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually prefer the JUL implementation they have.&amp;nbsp; Yes, it's no fun to bridge it, but it's better than having to deal with a transitive dependency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://trevershick.tumblr.com/post/18127159072/state-of-java-logging" rel="nofollow noopener noreferrer"&gt;http://trevershick.tumblr.com/post/18127159072/state-of-java-logging&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2012 18:13:44 GMT</pubDate>
    <dc:creator>trevershick</dc:creator>
    <dc:date>2012-02-28T18:13:44Z</dc:date>
    <item>
      <title>java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51783#M30307</link>
      <description>Hi,Activiti is using jdk logging currently. When an application uses log4j or logback it is harder than necessary to consolidate the debug logs. Has it been considered to use a logging bridge which is a tad bit more flexible towards whatever logging framework the embedding application is using ? slf</description>
      <pubDate>Wed, 04 May 2011 09:18:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51783#M30307</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-05-04T09:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51784#M30308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Isn't that what slf4j can do for you, bridge whatever logging framework there is to something else with the libs using whatever they want instead of *forcing* then to use slf4j or whatever… Search the net and you'll quickly find how to simple bridge this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 22:10:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51784#M30308</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-05-04T22:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51785#M30309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes i did my homework before posting this &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; The jul-to-slf4j bridge [1] is doable but not as straightforward as the jcl or log4j bridge where you just copy jars around and be done with it, i'm quite familiar with this. For jul-to-slf4j i need to write init code to make it work [2]. There are some performance impact warnings because of the way it is implemented, and the advice is to only use this bridge in combination with logback's LevelChangePropagator [3], but what if we're already using log4j in our app ? Should we then bridge both j.u.l and log4j over slf4j to logback ? Oh hey i just used 4 logging frameworks in one sentence ! &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So all this sounded like the too-many-hoops-to-jump-through syndrome and that's why i mentioned it here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jorg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] &lt;/SPAN&gt;&lt;A href="http://www.slf4j.org/legacy.html#jul-to-slf4j" rel="nofollow noopener noreferrer"&gt;http://www.slf4j.org/legacy.html#jul-to-slf4j&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] &lt;/SPAN&gt;&lt;A href="http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html" rel="nofollow noopener noreferrer"&gt;http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;[3] &lt;/SPAN&gt;&lt;A href="http://logback.qos.ch/manual/configuration.html#LevelChangePropagator" rel="nofollow noopener noreferrer"&gt;http://logback.qos.ch/manual/configuration.html#LevelChangePropagator&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 07:06:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51785#M30309</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-05-05T07:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51786#M30310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason why we're using jul is exactly what you are describing there: there is just not a standard for doing loggin in java. So we choose JUL primarly for the reason that it doesnt add any extra dependencies, simple as that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 09:12:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51786#M30310</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-05-09T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51787#M30311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;adding no extra dependencies is simpler for you indeed but makes it more difficult for users to bridge it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also j.u.l is configured on a per VM basis, meaning that changing the logging config affects all running apps and make multi-tennancy more annoying than needed. Tomcat example replaces the j.u.l LogManager with a container and webapp friendly implementation for this reason exactly (see &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_java.util.logging_%28default%29" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_java.util.logging_%28default%29&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway it's your call, we adapt &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 09:02:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51787#M30311</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-05-10T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51788#M30312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of just using Juli in Activiti, could you simply use your own small wrapper around a pluggable log mechanism to allow the client to choose?&amp;nbsp; Something via configuration or an environment property….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't have to implement the bridges yourself, but you could end up with something similar to slf4j but without adding a dependency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If Activiti code uses ActivitiLogger which is an interface that looks up an implementation to use (which by default would be your JUL), you would allow us to add our own implementation to bridge to whatever logging mechanism we would prefer to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would solve your zero dependency requirement yet allow us as clients to bridge to whatever logging mechanism we wish.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 12:50:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51788#M30312</guid>
      <dc:creator>trevershick</dc:creator>
      <dc:date>2012-02-23T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51789#M30313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If Activiti code uses ActivitiLogger which is an interface that looks up an implementation to use (which by default would be your JUL), you would allow us to add our own implementation to bridge to whatever logging mechanism we would prefer to use.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;uh oh, do i see yet another logging bridge adapter converter manager on the horizon ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 16:33:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51789#M30313</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-02-23T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: java.util.logging usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51790#M30314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perhaps… their stated goal of "(JUL) reason that it doesnt add any extra dependencies" is hard to ignore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's a good goal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even a 'small' framework like slf4j is still a PITA sometimes depending on where you deploy it. Clashes between slf4j are handled well, but i'd rather avoid the clashes completely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually prefer the JUL implementation they have.&amp;nbsp; Yes, it's no fun to bridge it, but it's better than having to deal with a transitive dependency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://trevershick.tumblr.com/post/18127159072/state-of-java-logging" rel="nofollow noopener noreferrer"&gt;http://trevershick.tumblr.com/post/18127159072/state-of-java-logging&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 18:13:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-util-logging-usage/m-p/51790#M30314</guid>
      <dc:creator>trevershick</dc:creator>
      <dc:date>2012-02-28T18:13:44Z</dc:date>
    </item>
  </channel>
</rss>

