Skip to content

Instantly share code, notes, and snippets.

Created December 25, 2012 01:33
trait Logging {
def log(message: String) {
println("[" + getClass().getCanonicalName() + "] " + message)
}
}
class Foo extends Logging {
log("Hello")
log("World!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment