p

zio

logging

package logging

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

Package Members

  1. package internal

Type Members

  1. final case class ConsoleLoggerConfig(format: LogFormat, filter: LogLevelByNameConfig) extends Product with Serializable
  2. final case class FileLoggerConfig(destination: Path, format: LogFormat, filter: LogLevelByNameConfig, charset: Charset = StandardCharsets.UTF_8, autoFlushBatchSize: Int = 1, bufferedIOSize: Option[Int] = None, rollingPolicy: Option[FileRollingPolicy] = None) extends Product with Serializable
  3. final case class FilteredLogger[Message, Output](logger: ZLogger[Message, Output], filter: LogFilter[Message]) extends ZLogger[Message, Option[Output]] with Product with Serializable
  4. final case class LogAnnotation[A](name: String, combine: (A, A) => A, render: (A) => String)(implicit evidence$1: Tag[A]) extends Product with Serializable

    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")
  5. implicit final class LogAnnotationZIOSyntax[R, E, A] extends AnyRef
  6. final case class LogColor extends AnyVal with Product with Serializable
  7. final case class LogContext extends Product with Serializable

    A LogContext stores context associated with logging operations.

  8. sealed trait LogFilter[-Message] extends AnyRef

    A LogFilter represents function/conditions for log filtering

  9. sealed trait LogFormat extends AnyRef

    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))
  10. sealed trait LogGroup[-Message, Out] extends AnyRef
  11. sealed trait LoggerNameExtractor extends AnyRef
  12. final case class MetricLogger(counter: Counter[Long], logLevelLabel: String) extends ZLogger[String, Unit] with Product with Serializable
  13. sealed trait ReconfigurableLogger[-Message, +Output, Config] extends ZLogger[Message, Output]
  14. implicit final class ZLoggerOps[-Message, +Output] extends AnyRef
  15. implicit final class ZLoggerZIOLayerOps[RIn, +E, ROut <: ZLogger[String, Any]] extends AnyRef
    Definition Classes
    LoggerLayers

Value Members

  1. def consoleErrJsonLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  2. def consoleErrJsonLogger(config: ConsoleLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  3. def consoleErrLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  4. def consoleErrLogger(config: ConsoleLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  5. def consoleJsonLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  6. def consoleJsonLogger(config: ConsoleLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  7. def consoleLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  8. def consoleLogger(config: ConsoleLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  9. def fileAsyncJsonLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  10. def fileAsyncJsonLogger(config: FileLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  11. def fileAsyncLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  12. def fileAsyncLogger(config: FileLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  13. def fileJsonLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  14. def fileJsonLogger(config: FileLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  15. def fileLogger(configPath: NonEmptyChunk[String] = loggerConfigPath): ZLayer[Any, Error, Unit]
    Definition Classes
    LoggerLayers
  16. def fileLogger(config: FileLoggerConfig): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  17. val logContext: FiberRef[LogContext]

    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.

  18. val logMetrics: ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  19. def logMetricsWith(name: String, logLevelLabel: String): ZLayer[Any, Nothing, Unit]
    Definition Classes
    LoggerLayers
  20. val loggerConfigPath: NonEmptyChunk[String]
  21. def loggerName(value: String): ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]

    Logger name aspect, by this aspect is possible to set logger name (in general, logger name is extracted from Trace)

    Logger name aspect, by this aspect is possible to set logger name (in general, logger name is extracted from Trace)

    annotation key: zio.logging.loggerNameAnnotationKey

  22. val loggerNameAnnotationKey: String

    log aspect annotation key for logger name

  23. def makeConsoleErrJsonLogger(config: ConsoleLoggerConfig): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  24. def makeConsoleErrLogger(config: ConsoleLoggerConfig): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  25. def makeConsoleJsonLogger(config: ConsoleLoggerConfig): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  26. def makeConsoleLogger(config: ConsoleLoggerConfig): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  27. def makeFileAsyncJsonLogger(config: FileLoggerConfig): ZIO[Scope, Nothing, FilteredLogger[String, Any]]
    Definition Classes
    LoggerLayers
  28. def makeFileAsyncLogger(destination: Path, logger: ZLogger[String, String], charset: Charset, autoFlushBatchSize: Int, bufferedIOSize: Option[Int], rollingPolicy: Option[FileRollingPolicy]): ZIO[Scope, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  29. def makeFileAsyncLogger(config: FileLoggerConfig): ZIO[Scope, Nothing, FilteredLogger[String, Any]]
    Definition Classes
    LoggerLayers
  30. def makeFileJsonLogger(config: FileLoggerConfig): ZIO[Any, Nothing, FilteredLogger[String, Any]]
    Definition Classes
    LoggerLayers
  31. def makeFileLogger(destination: Path, logger: ZLogger[String, String], charset: Charset, autoFlushBatchSize: Int, bufferedIOSize: Option[Int], rollingPolicy: Option[FileRollingPolicy]): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  32. def makeFileLogger(config: FileLoggerConfig): ZIO[Any, Nothing, FilteredLogger[String, Any]]
    Definition Classes
    LoggerLayers
  33. def makeMetricLogger(counter: Counter[Long], logLevelLabel: String): ZIO[Any, Nothing, MetricLogger]
    Definition Classes
    LoggerLayers
  34. def makePrintStreamLogger(logger: ZLogger[String, String], stream: PrintStream): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  35. def makeSystemErrLogger(logger: ZLogger[String, String]): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  36. def makeSystemOutLogger(logger: ZLogger[String, String]): ZIO[Any, Nothing, ZLogger[String, Any]]
    Definition Classes
    LoggerLayers
  37. object ConsoleLoggerConfig extends Serializable
  38. object FileLoggerConfig extends Serializable
  39. object LogAnnotation extends Serializable
  40. object LogColor extends Serializable
  41. object LogContext extends Serializable
  42. object LogFilter
  43. object LogFormat
  44. object LogGroup
  45. object LoggerNameExtractor
  46. object ReconfigurableLogger

Inherited from LoggerLayers

Inherited from AnyRef

Inherited from Any

Ungrouped