You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loggers are declared as private static final. This can have impact when having the library deployed on "shared" classpaths.
It is prefereable to have them non-static.
If you care about serialization Loggers could be changed to be also transient.
Loggers are declared as
private static final
. This can have impact when having the library deployed on "shared" classpaths.It is prefereable to have them
non-static
.If you care about serialization Loggers could be changed to be also
transient
.For reference see:
http://slf4j.org/faq.html#declared_static
https://cwiki.apache.org/confluence/display/COMMONS/Logging+StaticLog
Projects implementing such a policy:
https://www.eclipse.org/smarthome/documentation/development/guidelines.html#e-logging
https://www.openhab.org/docs/developer/guidelines.html#f-logging
(Have to admit these projetcs are closely related but both are supposed to support dynamic reloading of JARs/ bundles.)
The text was updated successfully, but these errors were encountered: