Trait/Object

spinoco.fs2.log

Log

Related Docs: object Log | package log

Permalink

trait Log[F[_]] extends AnyRef

Source
Log.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Log
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def log(level: Log.Level.Value, message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    Logs the message with supplied level

    Logs the message with supplied level

    level

    Level to log message with

    message

    Message to log

    detail

    Any details to attach with message

  2. abstract def observe[A](level: Log.Level.Value, message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    Observes execution of f.

    Observes execution of f. When f completes successfully, then this will log value A as detail with A value converted to string via supplied Show.

    Note that when f fails this will not log the failure. Use observeRaised if you want to capture failures

    level

    Level to log message with

    message

    Message to log

    detail

    Any details to attach with message

    f

    A f to run

  3. abstract def observeRaised[A](level: Log.Level.Value, message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    Observes execution of f.

    Observes execution of f. When f completes with raised failure, then this will log that failure, and rethrow the failure

    Note that when f completes successfully this will not log the value. If you want to log the value use observe.

    level

    Level to log message with

    message

    Message to log

    detail

    Any details to attach with message

    f

    A f to run

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to any2stringadd[Log[F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Log[F], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to ArrowAssoc[Log[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def config(message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    alias for log(Config, message, detail, thrown) *

    alias for log(Config, message, detail, thrown) *

    Annotations
    @inline()
  9. def debug(message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    alias for log(Debug, message, detail, thrown) *

    alias for log(Debug, message, detail, thrown) *

    Annotations
    @inline()
  10. def ensuring(cond: (Log[F]) ⇒ Boolean, msg: ⇒ Any): Log[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to Ensuring[Log[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Log[F]) ⇒ Boolean): Log[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to Ensuring[Log[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Log[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to Ensuring[Log[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Log[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to Ensuring[Log[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def error(message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    alias for log(Error, message, detail, thrown) *

    alias for log(Error, message, detail, thrown) *

    Annotations
    @inline()
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to StringFormat[Log[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def info(message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    alias for log(Info, message, detail, thrown) *

    alias for log(Info, message, detail, thrown) *

    Annotations
    @inline()
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def observeAsConfig[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observe(Config, message, detail)(f) *

    alias for observe(Config, message, detail)(f) *

    Annotations
    @inline()
  27. def observeAsDebug[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observe(Debug, message, detail)(f) *

    alias for observe(Debug, message, detail)(f) *

    Annotations
    @inline()
  28. def observeAsError[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observe(Error, message, detail)(f) *

    alias for observe(Error, message, detail)(f) *

    Annotations
    @inline()
  29. def observeAsInfo[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observe(Info, message, detail)(f) *

    alias for observe(Info, message, detail)(f) *

    Annotations
    @inline()
  30. def observeAsTrace[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observe(Trace, message, detail)(f) *

    alias for observe(Trace, message, detail)(f) *

    Annotations
    @inline()
  31. def observeAsWarn[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit arg0: Show[A], line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observe(Warn, message, detail)(f) *

    alias for observe(Warn, message, detail)(f) *

    Annotations
    @inline()
  32. def observeRaisedAsConfig[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observeRaised(Config, message, detail)(f) *

    alias for observeRaised(Config, message, detail)(f) *

    Annotations
    @inline()
  33. def observeRaisedAsDebug[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observeRaised(Debug, message, detail)(f) *

    alias for observeRaised(Debug, message, detail)(f) *

    Annotations
    @inline()
  34. def observeRaisedAsError[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observeRaised(Error, message, detail)(f) *

    alias for observeRaised(Error, message, detail)(f) *

    Annotations
    @inline()
  35. def observeRaisedAsInfo[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observeRaised(Info, message, detail)(f) *

    alias for observeRaised(Info, message, detail)(f) *

    Annotations
    @inline()
  36. def observeRaisedAsTrace[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observeRaised(Trace, message, detail)(f) *

    alias for observeRaised(Trace, message, detail)(f) *

    Annotations
    @inline()
  37. def observeRaisedAsWarn[A](message: ⇒ String, detail: ⇒ Detail = Detail.empty)(f: F[A])(implicit line: Line, file: File, ctx: LogContext): F[A]

    Permalink

    alias for observeRaised(Warn, message, detail)(f) *

    alias for observeRaised(Warn, message, detail)(f) *

    Annotations
    @inline()
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. def trace(message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    alias for log(Trace, message, detail, thrown) *

    alias for log(Trace, message, detail, thrown) *

    Annotations
    @inline()
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def warn(message: ⇒ String, detail: ⇒ Detail = Detail.empty, thrown: Option[Throwable] = None)(implicit line: Line, file: File, ctx: LogContext): F[Unit]

    Permalink

    alias for log(Warn, message, detail, thrown) *

    alias for log(Warn, message, detail, thrown) *

    Annotations
    @inline()
  45. def [B](y: B): (Log[F], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Log[F] to ArrowAssoc[Log[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Log[F] to any2stringadd[Log[F]]

Inherited by implicit conversion StringFormat from Log[F] to StringFormat[Log[F]]

Inherited by implicit conversion Ensuring from Log[F] to Ensuring[Log[F]]

Inherited by implicit conversion ArrowAssoc from Log[F] to ArrowAssoc[Log[F]]

Ungrouped