|
Scala
1.4.0.1 |
|||
class MyClass with Logged { ... do stuff, call log }
The user of the library instantiates:
val x = new MyClass() with ConsoleLogger;
and the logging will be sent to the Console.
| Method Summary | |
def log(msg: String): Unit
this method should log the message given as argument somewhere as a side-effect |
|
| Methods inherited from java/lang/Object-class |
| clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
| Methods inherited from scala/Any-class |
| !=, ==, asInstanceOf, isInstanceOf, match |
| Methods inherited from scala/ScalaObject-class |
| getScalaType |
| Method Detail |
def log(msg: String): Unit
|
Scala
1.4.0.1 |
|||