zio.logging

package zio.logging

Type members

Classlikes

final case class LogAnnotation[A](name: String, initialValue: A, combine: (A, A) => A, render: A => String)(`evidence$1`: ClassTag[A])

A LogAnnotation describes a particular type of annotation applied to log lines.

Companion
object
Companion
class

Represents log writer function that turns A into String and put in console or save to file.

final case class LogContext

A LogContext stores context associated with logging operations.

Companion
object
object LogContext
Companion
class
object LogFiltering
trait LogFormat[A]

Log Format represents function that that take context with all log annotations and string line and produce final log entry.

Idea is that those format should be composed by decoration.

Companion
object
object LogFormat
Companion
class
sealed trait LogLevel

A log level defines the level at which an element is logged.

Companion
object
object LogLevel
Companion
class
trait Logger[-A]
Companion
object
object Logger
Companion
class
object Logging
object log

Types

type Appender[A] = Has[Service[A]]
type Logging = Has[Logger[String]]