You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2006/04/19 11:33:53 UTC
svn commit: r395185 -
/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/package.html
Author: skitching
Date: Wed Apr 19 02:33:50 2006
New Revision: 395185
URL: http://svn.apache.org/viewcvs?rev=395185&view=rev
Log:
The use of static Log objects may or may not be safe depending on how that code is
intended to be deployed. It's therefore better for the examples to show the safest
approach (without static fields).
Modified:
jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/package.html
Modified: jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/package.html
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/package.html?rev=395185&r1=395184&r2=395185&view=diff
==============================================================================
--- jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/package.html (original)
+++ jakarta/commons/proper/logging/trunk/src/java/org/apache/commons/logging/package.html Wed Apr 19 02:33:50 2006
@@ -56,7 +56,7 @@
public class Foo {
- static Log log = LogFactory.getLog(Foo.class);
+ private Log log = LogFactory.getLog(Foo.class);
public void foo() {
...
@@ -221,7 +221,7 @@
public class MyComponent {
- protected static Log log =
+ protected Log log =
LogFactory.getLog(MyComponent.class);
// Called once at startup time
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org