From 2b6d5c1316e13bd47170cfe726889bc4926bc4a4 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 22 Jun 2011 19:17:10 -0400 Subject: [PATCH] add extraLoggers to make it easier to add loggers --- util/log/Level.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/util/log/Level.scala b/util/log/Level.scala index 62fb5f2c2..f501cd40c 100644 --- a/util/log/Level.scala +++ b/util/log/Level.scala @@ -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)