com.bazaarvoice.sswf.Logger.scala Maven / Gradle / Ivy
package com.bazaarvoice.sswf
trait Logger {
def trace(message: => String): Unit
def debug(message: => String): Unit
def info(message: => String): Unit
def warn(message: => String): Unit
def warn(message: => String, throwable: Throwable): Unit
def error(message: => String): Unit
def error(message: => String, throwable: Throwable): Unit
}
class SilentLogger extends Logger {
override def debug(message: => String): Unit = ()
override def warn(message: => String): Unit = ()
override def warn(message: => String, throwable: Throwable): Unit = ()
override def error(message: => String): Unit = ()
override def error(message: => String, throwable: Throwable): Unit = ()
override def trace(message: => String): Unit = ()
override def info(message: => String): Unit = ()
}