Logger

harness.zio.Logger$
See theLogger companion class
object Logger

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Logger.type

Members list

Type members

Classlikes

object Cause

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Cause.type
sealed trait Cause

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Base
class Die
class Fail
class Interrupt
class Both
object Empty.type
class Then
Show all
final case class Event(level: Option[LogLevel], _message: () => String, _context: () => LogContext, cause: Cause, trace: Trace, stackTrace: Option[StackTrace])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Event

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Event.type
final case class ExecutedEvent(logLevel: Option[LogLevel], message: String, context: LogContext, cause: Cause, trace: Trace, stackTrace: Option[StackTrace], timestamp: Instant)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object FiberId

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
FiberId.type
sealed trait FiberId

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Composite
object None.type
class Runtime
object LogContext

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
LogContext.type
enum LogLevel(val rawDisplayName: String, val tolerancePriority: Int, val logPriority: Int, val extendedColor: Color, val simpleColor: Simple, val zioLogLevel: LogLevel) extends Enum[LogLevel]

Attributes

Companion
object
Supertypes
trait Enum
trait Product
trait Equals
trait Enum[LogLevel]
class Enum[LogLevel]
trait Serializable
trait Comparable[LogLevel]
trait Constable
class Object
trait Matchable
class Any
Show all
object LogLevel extends Companion[LogLevel]

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
trait Companion[LogLevel]
class Object
trait Matchable
class Any
Show all
Self type
LogLevel.type
final case class Source(name: String, target: URIO[Scope, Target], minLogTolerance: Option[LogLevel], args: Chunk[(String, String)])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Source

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Source.type
final case class StackTrace

Note: stackTrace will be FiberId.None if this StackTrace has been encoded/decoded.

Note: stackTrace will be FiberId.None if this StackTrace has been encoded/decoded.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object StackTrace

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
StackTrace.type
object Target

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Target.type
trait Target

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
final case class Trace(location: String, file: String, line: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Trace

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Trace.type
object log

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
log.type
object logCause

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
logCause.type
object logCauseStack

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object logStack

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
logStack.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
withLevel.type

Types

type LogContext = Chunk[(String, String)]

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def addContext(context: Chunk[(String, String)]): FiberRefModification
def addContext(context: (String, Any)*): FiberRefModification
def addSources(sources: Chunk[Source]): FiberRefModification
def current: UIO[Logger]
def execute(event: Event): UIO[Unit]
def getContext: UIO[Chunk[(String, String)]]
def withContext(context: Chunk[(String, String)]): FiberRefModification
def withContext(context: (String, Any)*): FiberRefModification
def withForwardToZio(forwardToZio: Boolean): FiberRefModification
def withSources(sources: Chunk[Source]): FiberRefModification