Loggable

com.phasmidsoftware.flog.Loggable
See theLoggable companion trait
object Loggable

Companion object to Loggable. This is where the compiler can find the various given instances of Loggable[T].

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Loggable.type

Members list

Type members

Classlikes

abstract class LoggableOption[T](using evidence: Loggable[T]) extends Loggable[Option[T]]

An abstract class that provides logging capability for Option values by extending the Loggable type class for Option[T].

An abstract class that provides logging capability for Option values by extending the Loggable type class for Option[T].

Type parameters

T

the underlying type contained within the Option.

Value parameters

evidence

a context parameter ensuring a Loggable instance exists for type T.

Attributes

Supertypes
trait Loggable[Option[T]]
class Object
trait Matchable
class Any
Known subtypes

Given instance of Loggable[Option[Int]].

Given instance of Loggable[Option[Int]].

Attributes

Supertypes
class LoggableOption[Int]
trait Loggable[Option[Int]]
class Object
trait Matchable
class Any
Self type

Given instance of Loggable[Option[String]].

Given instance of Loggable[Option[String]].

Attributes

Supertypes
class LoggableOption[String]
trait Loggable[Option[String]]
class Object
trait Matchable
class Any
Self type
object given_Loggable_BigDecimal extends Loggable[BigDecimal]

Given instance of Loggable[BigDecimal]. Renders via toString.

Given instance of Loggable[BigDecimal]. Renders via toString.

Attributes

Supertypes
trait Loggable[BigDecimal]
class Object
trait Matchable
class Any
Self type
object given_Loggable_BigInt extends Loggable[BigInt]

Given instance of Loggable[BigInt]. Renders via toString.

Given instance of Loggable[BigInt]. Renders via toString.

Attributes

Supertypes
trait Loggable[BigInt]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Boolean extends Loggable[Boolean]

Given instance of Loggable[Boolean]. Renders via toString.

Given instance of Loggable[Boolean]. Renders via toString.

Attributes

Supertypes
trait Loggable[Boolean]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Byte extends Loggable[Byte]

Given instance of Loggable[Byte]. Renders via toString.

Given instance of Loggable[Byte]. Renders via toString.

Attributes

Supertypes
trait Loggable[Byte]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Double extends Loggable[Double]

Given instance of Loggable[Double]. Renders via toString.

Given instance of Loggable[Double]. Renders via toString.

Attributes

Supertypes
trait Loggable[Double]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Int extends Loggable[Int]

Given instance of Loggable[Int]. Renders via toString.

Given instance of Loggable[Int]. Renders via toString.

Attributes

Supertypes
trait Loggable[Int]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Long extends Loggable[Long]

Given instance of Loggable[Long]. Renders via toString.

Given instance of Loggable[Long]. Renders via toString.

Attributes

Supertypes
trait Loggable[Long]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Short extends Loggable[Short]

Given instance of Loggable[Short]. Renders via toString.

Given instance of Loggable[Short]. Renders via toString.

Attributes

Supertypes
trait Loggable[Short]
class Object
trait Matchable
class Any
Self type
object given_Loggable_String extends Loggable[String]

Given instance of Loggable[String]. Returns the string itself.

Given instance of Loggable[String]. Returns the string itself.

Attributes

Supertypes
trait Loggable[String]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Temporal extends Loggable[Temporal]

Given instance of Loggable[Temporal]. Renders via toString.

Given instance of Loggable[Temporal]. Renders via toString.

Attributes

Supertypes
trait Loggable[Temporal]
class Object
trait Matchable
class Any
Self type
object given_Loggable_Unit extends Loggable[Unit]

Given instance of Loggable[Unit]. Returns an empty string for any Unit value.

Given instance of Loggable[Unit]. Returns an empty string for any Unit value.

Attributes

Supertypes
trait Loggable[Unit]
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def loggableAny[T]: Loggable[T]

Method to yield a Loggable[T] which depends only on the toString method. This method will be invoked explicitly where no other Loggable[T] is in scope. NOTE: kept as a plain def (not a given) so it can be passed explicitly via using.

Method to yield a Loggable[T] which depends only on the toString method. This method will be invoked explicitly where no other Loggable[T] is in scope. NOTE: kept as a plain def (not a given) so it can be passed explicitly via using.

Type parameters

T

the underlying type of the required Loggable.

Attributes

Returns

a Loggable[T].

Givens

Givens

Given instance of Loggable[Option[Int]].

Given instance of Loggable[Option[Int]].

Attributes

Given instance of Loggable[Option[String]].

Given instance of Loggable[Option[String]].

Attributes

Given instance of Loggable[BigDecimal]. Renders via toString.

Given instance of Loggable[BigDecimal]. Renders via toString.

Attributes

Given instance of Loggable[BigInt]. Renders via toString.

Given instance of Loggable[BigInt]. Renders via toString.

Attributes

Given instance of Loggable[Boolean]. Renders via toString.

Given instance of Loggable[Boolean]. Renders via toString.

Attributes

Given instance of Loggable[Byte]. Renders via toString.

Given instance of Loggable[Byte]. Renders via toString.

Attributes

Given instance of Loggable[Double]. Renders via toString.

Given instance of Loggable[Double]. Renders via toString.

Attributes

Given instance of Loggable[Int]. Renders via toString.

Given instance of Loggable[Int]. Renders via toString.

Attributes

Given instance of Loggable[Long]. Renders via toString.

Given instance of Loggable[Long]. Renders via toString.

Attributes

Given instance of Loggable[Short]. Renders via toString.

Given instance of Loggable[Short]. Renders via toString.

Attributes

Given instance of Loggable[String]. Returns the string itself.

Given instance of Loggable[String]. Returns the string itself.

Attributes

Given instance of Loggable[Temporal]. Renders via toString.

Given instance of Loggable[Temporal]. Renders via toString.

Attributes

Given instance of Loggable[Unit]. Returns an empty string for any Unit value.

Given instance of Loggable[Unit]. Returns an empty string for any Unit value.

Attributes

given loggableMap[K : Loggable, V : Loggable]: Loggable[Map[K, V]]

Given instance of Loggable[Map[K, V]] for any K and V that are themselves Loggable.

Given instance of Loggable[Map[K, V]] for any K and V that are themselves Loggable.

Attributes

given loggableOptionMap[K : Loggable, V : Loggable]: Loggable[Option[Map[K, V]]]

Given instance of Loggable[Option[Map[K, V]]] for any K and V that are themselves Loggable.

Given instance of Loggable[Option[Map[K, V]]] for any K and V that are themselves Loggable.

Attributes