diff options
Diffstat (limited to 'src/actors/scala/actors/Debug.scala')
-rw-r--r-- | src/actors/scala/actors/Debug.scala | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/actors/scala/actors/Debug.scala b/src/actors/scala/actors/Debug.scala index 9807f2b620..89efe5db62 100644 --- a/src/actors/scala/actors/Debug.scala +++ b/src/actors/scala/actors/Debug.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2005-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** +** / __/ __// _ | / / / _ | (c) 2005-2007, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ @@ -14,33 +14,33 @@ package scala.actors * @author Philipp Haller */ object Debug { - var lev = 2 + private var lev = 2 def level = lev - def level_= (lev: int) = { - this.lev = lev - } + def level_= (lev: int) = { this.lev = lev } def info(s: String) = if (lev > 2) System.out.println("Info: " + s) + def warning(s: String) = if (lev > 1) System.err.println("Warning: " + s) + def error(s: String) = if (lev > 0) System.err.println("Error: " + s) } class Debug(tag: String) { - var lev = 2 + private var lev = 2 def level = lev - def level_= (lev: int) = { - this.lev = lev - } + def level_= (lev: int) = { this.lev = lev } def info(s: String) = if (lev > 2) System.out.println(tag + " (info): " + s) + def warning(s: String) = if (lev > 1) System.err.println(tag + " (warn): " + s) + def error(s: String) = if (lev > 0) System.err.println(tag + " (erro): " + s) } |