You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/02/10 12:02:03 UTC

spark git commit: [SPARK-9307][CORE][SPARK] Logging: Make it either stable or private

Repository: spark
Updated Branches:
  refs/heads/master e834e421d -> c0b71e0b8


[SPARK-9307][CORE][SPARK] Logging: Make it either stable or private

Make Logging private[spark]. Pretty much all there is to it.

Author: Sean Owen <so...@cloudera.com>

Closes #11103 from srowen/SPARK-9307.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c0b71e0b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c0b71e0b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c0b71e0b

Branch: refs/heads/master
Commit: c0b71e0b8f3c068f2f092bb118a16611b3d38d7a
Parents: e834e42
Author: Sean Owen <so...@cloudera.com>
Authored: Wed Feb 10 11:02:00 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Wed Feb 10 11:02:00 2016 +0000

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/Logging.scala | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c0b71e0b/core/src/main/scala/org/apache/spark/Logging.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/Logging.scala b/core/src/main/scala/org/apache/spark/Logging.scala
index e35e158..9e0a840 100644
--- a/core/src/main/scala/org/apache/spark/Logging.scala
+++ b/core/src/main/scala/org/apache/spark/Logging.scala
@@ -21,19 +21,15 @@ import org.apache.log4j.{Level, LogManager, PropertyConfigurator}
 import org.slf4j.{Logger, LoggerFactory}
 import org.slf4j.impl.StaticLoggerBinder
 
-import org.apache.spark.annotation.Private
 import org.apache.spark.util.Utils
 
 /**
  * Utility trait for classes that want to log data. Creates a SLF4J logger for the class and allows
  * logging messages at different levels using methods that only evaluate parameters lazily if the
  * log level is enabled.
- *
- * NOTE: DO NOT USE this class outside of Spark. It is intended as an internal utility.
- *       This will likely be changed or removed in future releases.
  */
-@Private
-trait Logging {
+private[spark] trait Logging {
+
   // Make the log field transient so that objects with Logging can
   // be serialized and used on another machine
   @transient private var log_ : Logger = null


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org