add extraLoggers to make it easier to add loggers

This commit is contained in:
Mark Harrah 2011-06-22 19:17:10 -04:00
parent 77d8bf8a57
commit 2b6d5c1316
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ object Level extends Enumeration
val SuccessLabel = "success"
def union(a: Value, b: Value) = if(a.id < b.id) a else b
def unionAll(vs: Seq[Value]) = vs reduceLeft union
/** Returns the level with the given name wrapped in Some, or None if no level exists for that name. */
def apply(s: String) = values.find(s == _.toString)