summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-11-15 17:26:48 +0000
committerburaq <buraq@epfl.ch>2004-11-15 17:26:48 +0000
commit7457a6092e49775542c22089aa91129fbd19f722 (patch)
tree7754f7e6bcaf90f95e9dd323f19bb107b90da7a5
parentfec3fd9ee63f85af4848c4eb67d1d9f1920a0ceb (diff)
downloadscala-7457a6092e49775542c22089aa91129fbd19f722.tar.gz
scala-7457a6092e49775542c22089aa91129fbd19f722.tar.bz2
scala-7457a6092e49775542c22089aa91129fbd19f722.zip
comment
-rw-r--r--sources/scala/util/logging/Logged.scala13
1 files changed, 11 insertions, 2 deletions
diff --git a/sources/scala/util/logging/Logged.scala b/sources/scala/util/logging/Logged.scala
index 06d42351f9..15652e6a72 100644
--- a/sources/scala/util/logging/Logged.scala
+++ b/sources/scala/util/logging/Logged.scala
@@ -2,8 +2,17 @@ package scala.util.logging;
/**
* Mixing in the trait Logged indicates that a class provides support
- * for logging.
- */
+ * for logging. For instance, a developer of a library writes
+ * <code>
+ class MyClass with Logged { ... do stuff, call log }
+ </code>
+ *
+ * The user of the library instantiates:
+ <code>
+ val x = new MyClass() with ConsoleLogger;
+ </code>
+ * and the logging will be sent to the Console.
+ */
trait Logged {
/** this method should log the message given as argument somewhere
* as a side-effect