java project logger generally use static final

(1): for reasons of resource use constructor arguments are LOGGER Class, LOGGER is determined according to the log to distinguish the class structure, so long as a LOGGER a class can, therefore static
(2): Final represents a programming habits, represent the class LOGGER only record information that class, otherwise the log will not provide a convincing record



Published 20 original articles · won praise 0 · views 10000 +

Guess you like

Origin blog.csdn.net/u011248560/article/details/49870217