well both are true so as usual the conclusion is "depend on your
case". BTW static is almost always fine in practise for standard apps.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014/1/13 Howard W. Smith, Jr. <[email protected]>:
> more to share, below.
>
> On Mon, Jan 13, 2014 at 7:06 AM, Howard W. Smith, Jr. <
> [email protected]> wrote:
>
>> Okay, never mind. I took the liberty to search google for:
>>
>> static Logger logger = LoggerFactory
>>
>> and found this[1], which makes it abundantly clear why I should define the
>> logger as 'static'. As always, thanks Romain!
>>
>>
>> [1]
>> http://stackoverflow.com/questions/6653520/why-do-we-declare-loggers-static-final
>>
>
> While I reading stackoverflow question/answers (URL above), someone
> referenced the URL below,
>
> http://www.slf4j.org/faq.html#declared_static
>
> which references the following:
>
> http://wiki.apache.org/commons/Logging/StaticLog
>
> I also recognized that I +1 that stackoverflow question and Tomasz answer
> some time in the past, so i think I 'avoided' static, because of all the
> URLs I mentioned above.

Reply via email to