Trait/Object

zio.logging

LogFormat

Related Docs: object LogFormat | package logging

Permalink

trait LogFormat extends AnyRef

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))
Self Type
LogFormat
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LogFormat
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def +(other: LogFormat): LogFormat

    Permalink

    Returns a new log format which concats both formats together without any separator between them.

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def color(color: LogColor): LogFormat

    Permalink

    Returns a new log format that produces the same output as this one, but with the specified color applied.

  8. final def concat(other: LogFormat): LogFormat

    Permalink

    The alphanumeric version of the + operator.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def fixed(size: Int): LogFormat

    Permalink

    Returns a new log format that produces the same as this one, but with a space-padded, fixed-width output.

    Returns a new log format that produces the same as this one, but with a space-padded, fixed-width output. Be careful using this operator, as it destroys all structure, resulting in purely textual log output.

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def highlight: LogFormat

    Permalink

    Returns a new log format that produces the same as this one, except that the log output is highlighted.

  16. final def highlight(fn: (LogLevel) ⇒ LogColor): LogFormat

    Permalink

    Returns a new log format that produces the same as this one, except that log levels are colored according to the specified mapping.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def spaced(other: LogFormat): LogFormat

    Permalink

    The alphanumeric version of the |-| operator.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. final def toLogger: ZLogger[String, String]

    Permalink

    Converts this log format into a text logger, which accepts text input, and produces text output.

  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def |-|(other: LogFormat): LogFormat

    Permalink

    Returns a new log format which concats both formats together with a space character between them.

Inherited from AnyRef

Inherited from Any

Ungrouped