mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Add missing logger methods that take Java Supplier
This commit is contained in:
@@ -40,11 +40,13 @@ abstract class Logger extends xLogger {
|
|||||||
def success(message: => String): Unit
|
def success(message: => String): Unit
|
||||||
def log(level: Level.Value, message: => String): Unit
|
def log(level: Level.Value, message: => String): Unit
|
||||||
|
|
||||||
|
def verbose(msg: Supplier[String]): Unit = debug(msg)
|
||||||
def debug(msg: Supplier[String]): Unit = log(Level.Debug, msg)
|
def debug(msg: Supplier[String]): Unit = log(Level.Debug, msg)
|
||||||
def warn(msg: Supplier[String]): Unit = log(Level.Warn, msg)
|
def warn(msg: Supplier[String]): Unit = log(Level.Warn, msg)
|
||||||
def info(msg: Supplier[String]): Unit = log(Level.Info, msg)
|
def info(msg: Supplier[String]): Unit = log(Level.Info, msg)
|
||||||
def error(msg: Supplier[String]): Unit = log(Level.Error, msg)
|
def error(msg: Supplier[String]): Unit = log(Level.Error, msg)
|
||||||
def trace(msg: Supplier[Throwable]): Unit = trace(msg.get())
|
def trace(msg: Supplier[Throwable]): Unit = trace(msg.get())
|
||||||
|
def success(msg: Supplier[String]): Unit = success(msg.get())
|
||||||
def log(level: Level.Value, msg: Supplier[String]): Unit = log(level, msg.get)
|
def log(level: Level.Value, msg: Supplier[String]): Unit = log(level, msg.get)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user