You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2007/07/11 15:20:13 UTC
svn commit: r555266 -
/harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
Author: tellison
Date: Wed Jul 11 06:20:12 2007
New Revision: 555266
URL: http://svn.apache.org/viewvc?view=rev&rev=555266
Log:
Deprecate global variable and introduce global name, as described in spec.
Modified:
harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
Modified: harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java?view=diff&rev=555266&r1=555265&r2=555266
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/logging/src/main/java/java/util/logging/Logger.java Wed Jul 11 06:20:12 2007
@@ -76,9 +76,17 @@
/**
* The global logger is provided as convenience for casual use.
+ *
+ * @deprecated Use Logger.getLogger(Logger.GLOBAL_LOGGER_NAME) instead.
*/
+ @Deprecated
public final static Logger global = new Logger("global", null); //$NON-NLS-1$
+ /**
+ * @since 1.6
+ */
+ public static final String GLOBAL_LOGGER_NAME = "global";
+
// the name of this logger
private volatile String name;
@@ -1405,4 +1413,5 @@
handlerInited = false;
}
}
+