LoggableOption

com.phasmidsoftware.flog.Loggable.LoggableOption
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].

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

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

Members list

Value members

Concrete methods

def toLog(t: Option[T]): String

Converts the given Option value to its loggable string representation.

Converts the given Option value to its loggable string representation.

Value parameters

t

the Option value to be logged.

Attributes

Returns

a string representation of the Option value.