Scala Library
|
|
scala/util/logging/Logged.scala
]
trait
Logged
extends
AnyRef
Mixing in the class Logged
indicates that a class provides
support for logging. For instance, the developer of a library writes
class MyClass extends 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
object.
Method Summary | |
def
|
log
(msg : java.lang.String) : Unit
This method should log the message given as argument somewhere
as a side-effect.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
log(msg : java.lang.String) : Unit
msg -
...
Scala Library
|
|