tag:blogger.com,1999:blog-19517292.post6181453143735104563..comments2024-03-28T12:34:09.269+01:00Comments on One Jar To Rule Them All: Hey! Teachers! Leave them kids alone! All in all it's just another brick in the wall. All in all you're just another brick in the wall. (Another Brick In The Wall - Pink Floyd)Alexhttp://www.blogger.com/profile/11632964711752480304noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-19517292.post-89612554473101783212018-10-27T15:29:49.884+02:002018-10-27T15:29:49.884+02:00https://www.bfirstseo.com/افضل-شركة-تنظيف-بالاحساء...<br /><br /><a href="https://www.bfirstseo.com/%D8%A7%D9%81%D8%B6%D9%84-%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D9%86%D8%B8%D9%8A%D9%81-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/" rel="nofollow">https://www.bfirstseo.com/افضل-شركة-تنظيف-بالاحساء/</a><br /><a href="https://www.bfirstseo.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D9%86%D8%B8%D9%8A%D9%81-%D8%A8%D8%A7%D9%84%D8%AF%D9%85%D8%A7%D9%85/" rel="nofollow">https://www.bfirstseo.com/شركة-تنظيف-بالدمام/</a><br /><a href="https://www.bfirstseo.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AC%D9%84%D9%8A-%D8%A8%D9%84%D8%A7%D8%B7-%D8%A8%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6/" rel="nofollow">https://www.bfirstseo.com/شركة-جلي-بلاط-بالرياض/</a><br /><a href="https://www.bfirstseo.com/%D8%B4%D8%B1%D9%83%D8%A9-%D9%86%D9%82%D9%84-%D8%B9%D9%81%D8%B4-%D8%A8%D9%8A%D9%86%D8%A8%D8%B9/" rel="nofollow">https://www.bfirstseo.com/شركة-نقل-عفش-بينبع/</a><br />Anonymoushttps://www.blogger.com/profile/07257615541094533135noreply@blogger.comtag:blogger.com,1999:blog-19517292.post-53717355211755232392012-04-15T12:56:24.229+02:002012-04-15T12:56:24.229+02:00Thank you very much all of you for reading post, a...Thank you very much all of you for reading post, about last comment:<br /><br />- yes you are right runtime scope is better.<br />- it just what I have said, there is no need to use typical isDebugEnable form.<br />- about performance, I am partially agree with you, it is true that if you log too much, using slf4j or log4j, will be bad, and no noticeable performance will be seen, but according to logback documentation, logback runs faster in some situations than log4j.Anonymoushttps://www.blogger.com/profile/03336355786853564350noreply@blogger.comtag:blogger.com,1999:blog-19517292.post-82405649628043190382012-04-13T07:21:07.201+02:002012-04-13T07:21:07.201+02:00Some comments on the original post:
- It's en...Some comments on the original post:<br /><br />- It's enough to include logback-classic as a dependency (it'll pull in -core). But you should really include it with scope "runtime". You don't want to have dependencies on logback sneaking into your code!<br /><br />- The mentioned "if(isDebugEnabled" construct is ridiculously overused by some Java developers. In most cases it's not worth doing that (especially if the log string isn't even concatenated!) and a classic example of premature optimization that clutters the code. It may be worth doing it for TRACE and log statements that are built using a loop, but then even slf4j's parameterised logging won't help you.<br /><br />- It's quite unlikely that using logback will give you any noticeable performance advantage in your application over log4j. If it does, you're probably logging way too much ;-) I also consider logback superior, but not for performance reasons.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19517292.post-24294376795810448452012-04-13T07:11:07.538+02:002012-04-13T07:11:07.538+02:00It's not a matter of sub-module or not. You sh...It's not a matter of sub-module or not. You should only include a concrete implementation (logback, log4j, whatever) in "runnable" artefacts, such as WAR, EAR or executable JARs. Everywhere else, your sole logging dependency should be the slf4j-api.<br /><br />(In fact, you may want to include a log implementation for testing, i.e. with "test" scope. I tend to use slf4j-simple for that, as it requires no configuration and is good enough for the purpose.)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-19517292.post-81820034945059364232012-04-12T00:53:11.237+02:002012-04-12T00:53:11.237+02:00In submodels I can declare only the slf4j-api depe...In submodels I can declare only the slf4j-api dependency?<br />ThanksAnonymousnoreply@blogger.com