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 Event

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AtLogLevel
class Compound
class Output
final case class ExecutedEvent(logLevel: Option[LogLevel], message: String, context: Map[String, String], dateTime: OffsetDateTime)

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class LogLevel(val name: String, val rawDisplayName: String, val tolerancePriority: Int, val logPriority: Int, val extendedColor: Color, val simpleColor: Simple)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Always.type
object Debug.type
object Detailed.type
object Error.type
object Fatal.type
object Important.type
object Info.type
object Never.type
object Trace.type
object Warning.type
Show all
object LogLevel

Attributes

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

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
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
object log

Attributes

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

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[R, E, A](context: (String, Any)*)(effect: ZIO[R, E, A]): ZIO[R & Logger, E, A]
def default(sources: List[Source], defaultMinLogTolerance: LogLevel, defaultContext: List[(String, Any)]): Logger
def execute(event: => Event): URIO[Logger, Unit]
def logError[E](error: E, context: (String, Any)*)(implicit errorLogger: ErrorLogger[E]): URIO[Logger, Unit]
def logErrorCause[E](cause: Cause[E], causeLevel: LogLevel, stackTraceLevel: Option[LogLevel], context: (String, Any)*)(using evidence$1: ErrorLogger[E]): URIO[Logger, Unit]
def logErrorCauseSimple[E](cause: Cause[E], causeLevel: LogLevel, stackTraceLevel: Option[LogLevel], context: (String, Any)*)(using evidence$2: ErrorLogger[E]): URIO[Logger, Unit]
def withSources(source0: Source, sourceN: Source*): URLayer[Logger, Logger]

Concrete fields

val configLayer: URLayer[LoggerConfig & Scope, Logger]
val getContext: URIO[Logger, Map[String, String]]
val none: Logger