mirror of https://github.com/sbt/sbt.git
add extraLoggers to make it easier to add loggers
This commit is contained in:
parent
77d8bf8a57
commit
2b6d5c1316
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue