Package

zio

logging

Permalink

package logging

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. logging
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class LogAnnotation[A](name: String, combine: (A, A) ⇒ A, render: (A) ⇒ String)(implicit evidence$1: Tag[A]) extends Product with Serializable

    Permalink

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

    A LogAnnotation describes a particular type of statically-typed log annotation applied to log lines. Log annotations combine in user-defined ways, which means they can have arbitrary structure. In the end, however, it must be possible to render each log annotation as a string.

    myEffect @@ UserId("jdoe")
  2. final case class LogColor extends AnyVal with Product with Serializable

    Permalink
  3. final case class LogContext extends Product with Serializable

    Permalink

    A LogContext stores context associated with logging operations.

  4. sealed trait LogFilter[-Message] extends AnyRef

    Permalink

    A LogFilter represents function/conditions for log filtering

  5. trait LogFormat extends AnyRef

    Permalink

    A LogFormat represents a DSL to describe the format of text log messages.

    A LogFormat represents a DSL to describe the format of text log messages.

    import zio.logging.LogFormat._
    timestamp.fixed(32) |-| level |-| label("message", quoted(line))
  6. trait LogGroup[-Message, Out] extends AnyRef

    Permalink
  7. trait LoggerNameExtractor extends AnyRef

    Permalink

Value Members

  1. object LogAnnotation extends Serializable

    Permalink
  2. object LogColor extends Serializable

    Permalink
  3. object LogContext extends Serializable

    Permalink
  4. object LogFilter

    Permalink
  5. object LogFormat

    Permalink
  6. object LogGroup

    Permalink
  7. object LoggerNameExtractor

    Permalink
  8. def console(format: LogFormat, logFilter: LogFilter[String]): ZLayer[Any, Nothing, Unit]

    Permalink
  9. def console(format: LogFormat = LogFormat.colored, logLevel: LogLevel = LogLevel.Info): ZLayer[Any, Nothing, Unit]

    Permalink
  10. def consoleErr(format: LogFormat, logFilter: LogFilter[String]): ZLayer[Any, Nothing, Unit]

    Permalink
  11. def consoleErr(format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info): ZLayer[Any, Nothing, Unit]

    Permalink
  12. def consoleErrJson(format: LogFormat, logFilter: LogFilter[String]): ZLayer[Any, Nothing, Unit]

    Permalink
  13. def consoleErrJson(format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info): ZLayer[Any, Nothing, Unit]

    Permalink
  14. def consoleJson(format: LogFormat, logFilter: LogFilter[String]): ZLayer[Any, Nothing, Unit]

    Permalink
  15. def consoleJson(format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info): ZLayer[Any, Nothing, Unit]

    Permalink
  16. def file(destination: Path, format: LogFormat, logFilter: LogFilter[String], charset: Charset, autoFlushBatchSize: Int, bufferedIOSize: Option[Int]): ZLayer[Any, Nothing, Unit]

    Permalink
  17. def file(destination: Path, format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info, charset: Charset = StandardCharsets.UTF_8, autoFlushBatchSize: Int = 1, bufferedIOSize: Option[Int] = None): ZLayer[Any, Nothing, Unit]

    Permalink
  18. def fileAsync(destination: Path, format: LogFormat, logFilter: LogFilter[String], charset: Charset, autoFlushBatchSize: Int, bufferedIOSize: Option[Int]): ZLayer[Any, Nothing, Unit]

    Permalink
  19. def fileAsync(destination: Path, format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info, charset: Charset = StandardCharsets.UTF_8, autoFlushBatchSize: Int = 1, bufferedIOSize: Option[Int] = None): ZLayer[Any, Nothing, Unit]

    Permalink
  20. def fileAsyncJson(destination: Path, format: LogFormat, logFilter: LogFilter[String], charset: Charset, autoFlushBatchSize: Int, bufferedIOSize: Option[Int]): ZLayer[Any, Nothing, Unit]

    Permalink
  21. def fileAsyncJson(destination: Path, format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info, charset: Charset = StandardCharsets.UTF_8, autoFlushBatchSize: Int = 1, bufferedIOSize: Option[Int] = None): ZLayer[Any, Nothing, Unit]

    Permalink
  22. def fileJson(destination: Path, format: LogFormat, logFilter: LogFilter[String], charset: Charset, autoFlushBatchSize: Int, bufferedIOSize: Option[Int]): ZLayer[Any, Nothing, Unit]

    Permalink
  23. def fileJson(destination: Path, format: LogFormat = LogFormat.default, logLevel: LogLevel = LogLevel.Info, charset: Charset = StandardCharsets.UTF_8, autoFlushBatchSize: Int = 1, bufferedIOSize: Option[Int] = None): ZLayer[Any, Nothing, Unit]

    Permalink
  24. package internal

    Permalink
  25. val logContext: FiberRef[LogContext]

    Permalink

    The logContext fiber reference is used to store typed, structured log annotations, which can be utilized by backends to enrich log messages.

    The logContext fiber reference is used to store typed, structured log annotations, which can be utilized by backends to enrich log messages.

    Because logContext is an ordinary zio.FiberRef, it may be get, set, and updated like any other fiber reference. However, the idiomatic way to interact with logContext is by using zio.logging.LogAnnotation.

    For example:

    myResponseHandler(request) @@ UserId(request.userId)

    This code would add the structured log annotation LogAnnotation.UserId to all log messages emitted by the myResponseHandler(request) effect.

  26. val removeDefaultLoggers: ZLayer[Any, Nothing, Unit]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped