aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2016-02-10 11:02:00 +0000
committerSean Owen <sowen@cloudera.com>2016-02-10 11:02:00 +0000
commitc0b71e0b8f3c068f2f092bb118a16611b3d38d7a (patch)
tree5db9cf805eaa580dc54ec0fe31834fed8d42c442
parente834e421dec30be8dade21287165d5eb95411c73 (diff)
downloadspark-c0b71e0b8f3c068f2f092bb118a16611b3d38d7a.tar.gz
spark-c0b71e0b8f3c068f2f092bb118a16611b3d38d7a.tar.bz2
spark-c0b71e0b8f3c068f2f092bb118a16611b3d38d7a.zip
[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 <sowen@cloudera.com> Closes #11103 from srowen/SPARK-9307.
-rw-r--r--core/src/main/scala/org/apache/spark/Logging.scala8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/src/main/scala/org/apache/spark/Logging.scala b/core/src/main/scala/org/apache/spark/Logging.scala
index e35e158c7e..9e0a840b72 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