All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bazaarvoice.sswf.Logger.scala Maven / Gradle / Ivy

There is a newer version: 5.2
Show newest version
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 = ()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy